Skip to content

mkyong.com

  • Spring Boot
  • Java Virtual Threads
  • Contact
  1. Home /
  2. count xml

Tag: count xml

java xml tutorials
java May 15, 2013 4 min read by mkyong 1 comment

How to count the depth of XML document (DOM Parser)

In the DOM parser, we can use a recursive loop of the child nodes to find or count the depth of the XML document. Table of contents 1. An XML file 2. DOM Parser + Recursive Loop 3. DOM Parser + Tree Walker 4. Download Source Code 5. References P.S Tested with Java 11. Note […]

Read more How to count the depth of XML document (DOM Parser)

Recent Posts

  • Java Compact Source File: No Class, No Static Main
  • Java Scoped Values Example
  • Spring Boot RAG Example with Spring AI
  • Java AtomicInteger Example
  • Java Virtual Threads Example
  • Spring Boot Supabase CRUD Example
  • Spring Boot REST Docs Example
  • How to Install Java on Windows (Step-by-Step Guide)

© 2008–2026 mkyong.com

  • About
  • Editorial Policy
  • Contact
  • Code License
  • Privacy Policy
  • Terms of Use