Skip to content

mkyong.com

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

Tag: transform xml

j
java February 16, 2021 3 min read by mkyong 1 comment

Pretty Print XML with Java Dom and XSLT

This article shows how to use Java DOM Parser + XSLT to format or pretty print a XML document. Table of contents 1. An XML file 2. Pretty Print XML via Transformer 3. Pretty Print XML via XSLT 4. Download Source Code 5. References P.S Tested with Java 11 1. An XML file staff-simple.xml <?xml […]

Read more Pretty Print XML with Java Dom and XSLT
j
java January 16, 2021 3 min read by mkyong 2 comments

Java DOM Parser XML and XSLT examples

With XSLT(Extensible Stylesheet Language Transformations), we can transform XML documents into other formats such as HTML. Table of contents 1. DOM Parser and Transformer 2. DOM example: XML + XSLT = HTML format 3. Download Source Code 4. References P.S Tested with Java 11 1. DOM Parser and Transformer We can use the TransformerFactory to […]

Read more Java DOM Parser XML and XSLT examples
j
java August 4, 2011 3 min read by mkyong 10 comments

How to modify XML file in Java – (DOM Parser)

This tutorial shows how to use the Java built-in DOM Parser to modify an XML file. Table of contents 1. The XML file, before and after 2. Dom Parser modify XML file 3. Download Source Code 4. References P.S Tested with Java 11. Note Please read DOM parse XML and DOM write XML. 1. The […]

Read more How to modify XML file in Java – (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