Skip to content

Commit 7e8ba52

Browse files
committed
Merge from remote
1 parent b5e8a5e commit 7e8ba52

32 files changed

+673
-481
lines changed

xml-2/README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ This module contains articles about eXtensible Markup Language (XML)
44

55
### Relevant Articles:
66

7-
- [Pretty-Print XML in Java](https://www.baeldung.com/java-pretty-print-xml)
8-
- [Validate an XML File Against an XSD File](https://www.baeldung.com/java-validate-xml-xsd)
9-
- [Converting JSON to XML in Java](https://www.baeldung.com/java-convert-json-to-xml)
10-
- [Convert an XML Object to a String in Java](https://www.baeldung.com/java-convert-xml-object-string)
117
- [Convert String Containing XML to org.w3c.dom.Document](https://www.baeldung.com/java-convert-string-xml-dom)
128
- [How to Parse XML to HashMap in Java](https://www.baeldung.com/java-xml-read-into-hashmap)
139
- [Convert an XML File to CSV File](https://www.baeldung.com/java-convert-xml-csv)
1410
- [Invalid Characters in XML](https://www.baeldung.com/java-xml-invalid-characters)
11+
- [How to Convert XML to PDF](https://www.baeldung.com/java-xml-pdf-conversion)
12+
- [How to Convert org.w3c.dom.Document to String in Java](https://www.baeldung.com/java-convert-org-w3c-dom-document-string)
13+
- [Introduction to JiBX](https://www.baeldung.com/jibx)
14+
- [Write an org.w3.dom.Document to a File](https://www.baeldung.com/java-write-xml-document-file)
15+
- [Modifying an XML Attribute in Java](https://www.baeldung.com/java-modify-xml-attribute)
16+
- [Convert XML to HTML in Java](https://www.baeldung.com/java-convert-xml-to-html)
17+
1518
- - More articles: [[prev -->]](../xml)

xml-2/pom.xml

Lines changed: 310 additions & 20 deletions
Large diffs are not rendered by default.

xml-2/src/main/java/com/baeldung/xml/prettyprint/XmlPrettyPrinter.java

Lines changed: 0 additions & 91 deletions
This file was deleted.

xml-2/src/main/java/com/baeldung/xml/tohashmap/Employees.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package com.baeldung.xml.tohashmap;
22

3+
import jakarta.xml.bind.annotation.XmlElement;
4+
import jakarta.xml.bind.annotation.XmlRootElement;
5+
36
import java.util.List;
47

5-
import javax.xml.bind.annotation.XmlElement;
6-
import javax.xml.bind.annotation.XmlRootElement;
78

89
@XmlRootElement(name = "employees")
910
public class Employees {

xml-2/src/main/java/com/baeldung/xml/tohashmap/XmlToHashMap.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
import java.util.function.Function;
1010
import java.util.stream.Collectors;
1111

12-
import javax.xml.bind.JAXBContext;
13-
import javax.xml.bind.JAXBException;
14-
import javax.xml.bind.Unmarshaller;
1512
import javax.xml.parsers.DocumentBuilder;
1613
import javax.xml.parsers.DocumentBuilderFactory;
1714
import javax.xml.parsers.ParserConfigurationException;
@@ -21,6 +18,9 @@
2118
import javax.xml.xpath.XPathExpressionException;
2219
import javax.xml.xpath.XPathFactory;
2320

21+
import jakarta.xml.bind.JAXBContext;
22+
import jakarta.xml.bind.JAXBException;
23+
import jakarta.xml.bind.Unmarshaller;
2424
import org.w3c.dom.Document;
2525
import org.w3c.dom.Element;
2626
import org.w3c.dom.NodeList;

xml-2/src/main/java/com/baeldung/xml/validation/XmlErrorHandler.java

Lines changed: 0 additions & 35 deletions
This file was deleted.

xml-2/src/main/java/com/baeldung/xml/validation/XmlValidator.java

Lines changed: 0 additions & 62 deletions
This file was deleted.

xml-2/src/main/resources/xml/prettyprint.xsl

Lines changed: 0 additions & 11 deletions
This file was deleted.

xml-2/src/main/resources/xml/validation/baeldung.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

xml-2/src/main/resources/xml/validation/full-person.xsd

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)