repo
stringclasses
1k values
file_url
stringlengths
96
373
file_path
stringlengths
11
294
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
6 values
commit_sha
stringclasses
1k values
retrieved_at
stringdate
2026-01-04 14:45:56
2026-01-04 18:30:23
truncated
bool
2 classes
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/test/java/com/baeldung/xml/XercesDomUnitTest.java
xml-modules/xml/src/test/java/com/baeldung/xml/XercesDomUnitTest.java
package com.baeldung.xml; import static org.junit.Assert.assertEquals; import java.io.File; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; impor...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/test/java/com/baeldung/xml/JaxenDemoUnitTest.java
xml-modules/xml/src/test/java/com/baeldung/xml/JaxenDemoUnitTest.java
package com.baeldung.xml; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.io.File; import java.util.List; import org.junit.Test; public class JaxenDemoUnitTest { final String fileName = "src/test/resources/example_jaxen.xml"; JaxenDemo jaxenDemo; @...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/test/java/com/baeldung/xml/Dom4JParserUnitTest.java
xml-modules/xml/src/test/java/com/baeldung/xml/Dom4JParserUnitTest.java
package com.baeldung.xml; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.io.File; import java.util.List; import org.dom4j.Element; import org.dom4j.Node; import org.junit.Test; public class Dom4JParserUnitTest { ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/test/java/com/baeldung/xml/JDomParserUnitTest.java
xml-modules/xml/src/test/java/com/baeldung/xml/JDomParserUnitTest.java
package com.baeldung.xml; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.io.File; import java.util.List; import org.jdom2.Element; import org.junit.Test; public class JDomParserUnitTest { final String fileName = ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/test/java/com/baeldung/xml/validation/XmlValidatorUnitTest.java
xml-modules/xml/src/test/java/com/baeldung/xml/validation/XmlValidatorUnitTest.java
package com.baeldung.xml.validation; import org.junit.jupiter.api.Test; import org.xml.sax.SAXException; import java.io.IOException; import static org.junit.jupiter.api.Assertions.*; class XmlValidatorUnitTest { private static final String BAELDUNG_XML_PATH = "xml/validation/baeldung.xml"; private static f...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/test/java/com/baeldung/xml/stax/StaxParserUnitTest.java
xml-modules/xml/src/test/java/com/baeldung/xml/stax/StaxParserUnitTest.java
package com.baeldung.xml.stax; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.util.List; import org.junit.Test; public class StaxParserUnitTest { @Test public void givenWebsitesXML_whenParsed_thenNotNull...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/test/java/com/baeldung/xml/json2xml/JsonToXmlUnitTest.java
xml-modules/xml/src/test/java/com/baeldung/xml/json2xml/JsonToXmlUnitTest.java
package com.baeldung.xml.json2xml; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.dataformat.xml.XmlMapper; import com...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/test/java/com/baeldung/xml/xml2string/XMLObjectToStringUnitTest.java
xml-modules/xml/src/test/java/com/baeldung/xml/xml2string/XMLObjectToStringUnitTest.java
package com.baeldung.xml.xml2string; import org.apache.xmlbeans.XmlException; import org.apache.xmlbeans.XmlObject; import org.apache.xmlbeans.XmlOptions; import org.junit.Before; import org.junit.Test; import org.w3c.dom.Document; import org.w3c.dom.Element; import javax.xml.parsers.DocumentBuilder; import javax.xml...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/test/java/com/baeldung/xml/xml2string/XmlDocumentToStringUnitTest.java
xml-modules/xml/src/test/java/com/baeldung/xml/xml2string/XmlDocumentToStringUnitTest.java
package com.baeldung.xml.xml2string; import org.junit.Test; import org.w3c.dom.Document; import static org.junit.Assert.assertEquals; public class XmlDocumentToStringUnitTest { @Test public void givenXMLDocument_thenConvertToStringSuccessfully() throws Exception { Document document = XmlDocumentToSt...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/test/java/com/baeldung/sax/SaxParserMainUnitTest.java
xml-modules/xml/src/test/java/com/baeldung/sax/SaxParserMainUnitTest.java
package com.baeldung.sax; import org.junit.Test; import org.xml.sax.SAXException; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import java.io.IOException; import java.util.List; import static org.junit.Assert.*; public class Sa...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/main/java/com/baeldung/xml/JaxenDemo.java
xml-modules/xml/src/main/java/com/baeldung/xml/JaxenDemo.java
package com.baeldung.xml; import static com.baeldung.xml.SecureDocumentBuilderFactory.newSecureDocumentBuilderFactory; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.List; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; imp...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/main/java/com/baeldung/xml/JDomParser.java
xml-modules/xml/src/main/java/com/baeldung/xml/JDomParser.java
package com.baeldung.xml; import java.io.File; import java.io.IOException; import java.util.List; import org.jdom2.Document; import org.jdom2.Element; import org.jdom2.JDOMException; import org.jdom2.filter.Filters; import org.jdom2.input.SAXBuilder; import org.jdom2.xpath.XPathExpression; import org.jdom2.xpath.XPat...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/main/java/com/baeldung/xml/StaxParser.java
xml-modules/xml/src/main/java/com/baeldung/xml/StaxParser.java
package com.baeldung.xml; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import javax.xml.stream.XMLEventReader; import javax.xml.stream.XMLInputFactory; import javax.xml.stream.XMLStreamConstants; imp...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/main/java/com/baeldung/xml/DefaultParser.java
xml-modules/xml/src/main/java/com/baeldung/xml/DefaultParser.java
package com.baeldung.xml; import static com.baeldung.xml.SecureDocumentBuilderFactory.newSecureDocumentBuilderFactory; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.Iterator; import javax.xml.namespace.NamespaceContext; import javax.xml.parsers.DocumentBuilder; imp...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/main/java/com/baeldung/xml/SecureDocumentBuilderFactory.java
xml-modules/xml/src/main/java/com/baeldung/xml/SecureDocumentBuilderFactory.java
package com.baeldung.xml; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; public class SecureDocumentBuilderFactory { public static DocumentBuilderFactory newSecureDocumentBuilderFactory() throws ParserConfigurationException { DocumentBuilderFactory ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/main/java/com/baeldung/xml/Dom4JParser.java
xml-modules/xml/src/main/java/com/baeldung/xml/Dom4JParser.java
package com.baeldung.xml; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.Iterator; import java.util.List; import org.dom4j.Document; import org.dom4j.DocumentException; import org.dom4j.DocumentHelper; import org.dom4j.Element; import org.dom4j.Node; import org.dom4j.io.O...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/main/java/com/baeldung/xml/JaxbParser.java
xml-modules/xml/src/main/java/com/baeldung/xml/JaxbParser.java
package com.baeldung.xml; import java.io.File; import java.util.ArrayList; import jakarta.xml.bind.JAXBContext; import jakarta.xml.bind.JAXBException; import jakarta.xml.bind.Marshaller; import jakarta.xml.bind.Unmarshaller; import com.baeldung.xml.binding.Tutorial; import com.baeldung.xml.binding.Tutorials; public...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/main/java/com/baeldung/xml/validation/XmlErrorHandler.java
xml-modules/xml/src/main/java/com/baeldung/xml/validation/XmlErrorHandler.java
package com.baeldung.xml.validation; import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import java.util.ArrayList; import java.util.List; public class XmlErrorHandler implements ErrorHandler { private List<SAXParseException> exceptions; public XmlErrorHandler() { this.exception...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/main/java/com/baeldung/xml/validation/XmlValidator.java
xml-modules/xml/src/main/java/com/baeldung/xml/validation/XmlValidator.java
package com.baeldung.xml.validation; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; import javax.xml.XMLConstants; import javax.xml.transform.Source; import javax.xml.transform.stream.StreamSource; import javax.xml.validation.Schema; imp...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/main/java/com/baeldung/xml/stax/StaxParser.java
xml-modules/xml/src/main/java/com/baeldung/xml/stax/StaxParser.java
package com.baeldung.xml.stax; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.util.List; import java.util.ArrayList; import javax.xml.stream.events.XMLEvent; import javax.xml.stream.XMLEventReader; import javax.xml.stream.XMLInputFactory; import javax.xml.stream.XMLStreamException; ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/main/java/com/baeldung/xml/stax/WebSite.java
xml-modules/xml/src/main/java/com/baeldung/xml/stax/WebSite.java
package com.baeldung.xml.stax; public class WebSite { private String url; private String name; private String category; private String status; public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getName() { ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/main/java/com/baeldung/xml/prettyprint/XmlPrettyPrinter.java
xml-modules/xml/src/main/java/com/baeldung/xml/prettyprint/XmlPrettyPrinter.java
package com.baeldung.xml.prettyprint; import org.dom4j.DocumentHelper; import org.dom4j.io.OutputFormat; import org.dom4j.io.XMLWriter; import org.w3c.dom.Document; import org.xml.sax.InputSource; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.transform.OutputKeys; import javax.xml.transform.Transf...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/main/java/com/baeldung/xml/binding/Tutorials.java
xml-modules/xml/src/main/java/com/baeldung/xml/binding/Tutorials.java
package com.baeldung.xml.binding; import java.util.List; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlRootElement; @XmlRootElement public class Tutorials { private List<Tutorial> tutorial; public List<Tutorial> getTutorial() { return tutorial; } @Xml...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/main/java/com/baeldung/xml/binding/Tutorial.java
xml-modules/xml/src/main/java/com/baeldung/xml/binding/Tutorial.java
package com.baeldung.xml.binding; import jakarta.xml.bind.annotation.XmlAttribute; import jakarta.xml.bind.annotation.XmlElement; public class Tutorial { private String tutId; private String type; private String title; private String description; private String date; private String author; ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/main/java/com/baeldung/xml/xml2string/XmlDocumentToString.java
xml-modules/xml/src/main/java/com/baeldung/xml/xml2string/XmlDocumentToString.java
package com.baeldung.xml.xml2string; import org.w3c.dom.Document; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.*; import javax.xml.transform.dom.DOMSource; import java...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml/src/main/java/com/baeldung/sax/SaxParserMain.java
xml-modules/xml/src/main/java/com/baeldung/sax/SaxParserMain.java
package com.baeldung.sax; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import java.io.IOException; import java.util.ArrayL...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/test/java/com/baeldung/test/XStreamJsonHierarchicalIntegrationTest.java
xml-modules/xstream/src/test/java/com/baeldung/test/XStreamJsonHierarchicalIntegrationTest.java
package com.baeldung.test; import com.baeldung.initializer.SimpleXstreamInitializer; import com.baeldung.pojo.ContactDetails; import com.baeldung.pojo.Customer; import com.baeldung.utility.SimpleDataGeneration; import com.thoughtworks.xstream.XStream; import org.junit.Assert; import org.junit.Before; import org.junit....
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/test/java/com/baeldung/test/XStreamJettisonIntegrationTest.java
xml-modules/xstream/src/test/java/com/baeldung/test/XStreamJettisonIntegrationTest.java
package com.baeldung.test; import com.baeldung.initializer.SimpleXstreamInitializer; import com.baeldung.pojo.ContactDetails; import com.baeldung.pojo.Customer; import com.baeldung.utility.SimpleDataGeneration; import com.thoughtworks.xstream.XStream; import org.junit.Assert; import org.junit.Before; import org.junit....
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/test/java/com/baeldung/rce/AttackExploitedExceptionThrower.java
xml-modules/xstream/src/test/java/com/baeldung/rce/AttackExploitedExceptionThrower.java
package com.baeldung.rce; /** * Class which contains an action to throw {@link AttackExploitedException}. * This helper is used by {@link AppTest} to determine when the remote code * exploit has taken place. */ final class AttackExploitedExceptionThrower { public void throwAttackExploitedException() { ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/test/java/com/baeldung/rce/XStreamBasicsUnitTest.java
xml-modules/xstream/src/test/java/com/baeldung/rce/XStreamBasicsUnitTest.java
package com.baeldung.rce; import com.thoughtworks.xstream.XStream; import org.junit.Before; import org.junit.Test; import java.util.Collections; import java.util.Map; import static org.junit.Assert.assertEquals; /** * Demonstrates XStream basics */ public final class XStreamBasicsUnitTest { private XStream ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/test/java/com/baeldung/rce/AppUnitTest.java
xml-modules/xstream/src/test/java/com/baeldung/rce/AppUnitTest.java
package com.baeldung.rce; import org.junit.After; import org.junit.Before; import org.junit.Test; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.SocketException; import java.net.URI; import java.net.URL; import static org.junit....
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/test/java/com/baeldung/rce/AttackExploitedException.java
xml-modules/xstream/src/test/java/com/baeldung/rce/AttackExploitedException.java
package com.baeldung.rce; /** * Indicates a successful remote code execution attack has taken place. */ final class AttackExploitedException extends RuntimeException { }
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/test/java/com/baeldung/pojo/test/XmlToObjectFieldAliasIntegrationTest.java
xml-modules/xstream/src/test/java/com/baeldung/pojo/test/XmlToObjectFieldAliasIntegrationTest.java
package com.baeldung.pojo.test; import com.baeldung.initializer.SimpleXstreamInitializer; import com.baeldung.pojo.Customer; import com.thoughtworks.xstream.XStream; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.io.FileNotFoundException; import java.io.FileReader; public class ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/test/java/com/baeldung/pojo/test/XmlToObjectAnnotationIntegrationTest.java
xml-modules/xstream/src/test/java/com/baeldung/pojo/test/XmlToObjectAnnotationIntegrationTest.java
package com.baeldung.pojo.test; import com.baeldung.annotation.pojo.Customer; import com.baeldung.initializer.SimpleXstreamInitializer; import com.thoughtworks.xstream.XStream; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.io.FileNotFoundException; import java.io.FileReader; pu...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/test/java/com/baeldung/pojo/test/XmlToObjectIgnoreFieldsIntegrationTest.java
xml-modules/xstream/src/test/java/com/baeldung/pojo/test/XmlToObjectIgnoreFieldsIntegrationTest.java
package com.baeldung.pojo.test; import com.baeldung.initializer.SimpleXstreamInitializer; import com.baeldung.pojo.Customer; import com.thoughtworks.xstream.XStream; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.io.FileNotFoundException; import java.io.FileReader; public class ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/test/java/com/baeldung/pojo/test/ComplexXmlToObjectAnnotationUnitTest.java
xml-modules/xstream/src/test/java/com/baeldung/pojo/test/ComplexXmlToObjectAnnotationUnitTest.java
package com.baeldung.pojo.test; import com.baeldung.complex.pojo.ContactDetails; import com.baeldung.complex.pojo.Customer; import com.baeldung.initializer.SimpleXstreamInitializer; import com.thoughtworks.xstream.XStream; import org.junit.Before; import org.junit.Test; import java.io.FileReader; import static org.j...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/test/java/com/baeldung/pojo/test/XmlToObjectAliasIntegrationTest.java
xml-modules/xstream/src/test/java/com/baeldung/pojo/test/XmlToObjectAliasIntegrationTest.java
package com.baeldung.pojo.test; import com.baeldung.initializer.SimpleXstreamInitializer; import com.baeldung.pojo.Customer; import com.thoughtworks.xstream.XStream; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.io.FileNotFoundException; import java.io.FileReader; public class ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/test/java/com/baeldung/pojo/test/ComplexXmlToObjectCollectionUnitTest.java
xml-modules/xstream/src/test/java/com/baeldung/pojo/test/ComplexXmlToObjectCollectionUnitTest.java
package com.baeldung.pojo.test; import com.baeldung.implicit.collection.pojo.Customer; import com.baeldung.initializer.SimpleXstreamInitializer; import com.thoughtworks.xstream.XStream; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.io.FileNotFoundException; import java.io.FileRe...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/test/java/com/baeldung/pojo/test/XmlToObjectIntegrationTest.java
xml-modules/xstream/src/test/java/com/baeldung/pojo/test/XmlToObjectIntegrationTest.java
package com.baeldung.pojo.test; import com.baeldung.initializer.SimpleXstreamInitializer; import com.baeldung.pojo.Customer; import com.baeldung.utility.SimpleDataGeneration; import com.thoughtworks.xstream.XStream; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.io.FileReader; p...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/test/java/com/baeldung/utility/XStreamSimpleXmlIntegrationTest.java
xml-modules/xstream/src/test/java/com/baeldung/utility/XStreamSimpleXmlIntegrationTest.java
package com.baeldung.utility; import com.baeldung.initializer.SimpleXstreamInitializer; import com.baeldung.pojo.AddressDetails; import com.baeldung.pojo.ContactDetails; import com.baeldung.pojo.Customer; import com.thoughtworks.xstream.XStream; import org.junit.Assert; import org.junit.Before; import org.junit.Test; ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/main/java/com/baeldung/initializer/SimpleXstreamInitializer.java
xml-modules/xstream/src/main/java/com/baeldung/initializer/SimpleXstreamInitializer.java
package com.baeldung.initializer; import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver; import com.thoughtworks.xstream.io.json.JsonHierarchicalStreamDriver; public class SimpleXstreamInitializer { public XStream getXstreamInstance() { XStream xstream =...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/main/java/com/baeldung/implicit/collection/pojo/ContactDetails.java
xml-modules/xstream/src/main/java/com/baeldung/implicit/collection/pojo/ContactDetails.java
package com.baeldung.implicit.collection.pojo; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamAsAttribute; @XStreamAlias("ContactDetails") public class ContactDetails { private String mobile; private String landline; @XStreamAsAttribute ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/main/java/com/baeldung/implicit/collection/pojo/Customer.java
xml-modules/xstream/src/main/java/com/baeldung/implicit/collection/pojo/Customer.java
package com.baeldung.implicit.collection.pojo; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamImplicit; import java.util.Date; import java.util.List; @XStreamAlias("customer") public class Customer { private String firstName; private String last...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/main/java/com/baeldung/rce/Person.java
xml-modules/xstream/src/main/java/com/baeldung/rce/Person.java
package com.baeldung.rce; import java.util.Objects; /** Person model */ public final class Person { private String first; private String last; public String getFirst() { return first; } public void setFirst(String first) { this.first = first; } public String getLast() {...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/main/java/com/baeldung/rce/App.java
xml-modules/xstream/src/main/java/com/baeldung/rce/App.java
package com.baeldung.rce; import com.sun.net.httpserver.HttpServer; import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.security.NoTypePermission; import com.thoughtworks.xstream.security.NullPermission; import com.thoughtworks.xstream.security.PrimitiveTypePermission; import java.io.IOException;...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/main/java/com/baeldung/annotation/pojo/Customer.java
xml-modules/xstream/src/main/java/com/baeldung/annotation/pojo/Customer.java
package com.baeldung.annotation.pojo; import com.thoughtworks.xstream.annotations.XStreamAlias; import java.util.Date; @XStreamAlias("customer") public class Customer { @XStreamAlias("fn") private String firstName; private String lastName; private Date dob; public String getFirstName() { ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/main/java/com/baeldung/annotation/pojo/CustomerOmitField.java
xml-modules/xstream/src/main/java/com/baeldung/annotation/pojo/CustomerOmitField.java
package com.baeldung.annotation.pojo; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamOmitField; import java.util.Date; @XStreamAlias("customer") public class CustomerOmitField { @XStreamOmitField private String firstName; private String last...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/main/java/com/baeldung/complex/pojo/ContactDetails.java
xml-modules/xstream/src/main/java/com/baeldung/complex/pojo/ContactDetails.java
package com.baeldung.complex.pojo; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamAsAttribute; @XStreamAlias("ContactDetails") public class ContactDetails { private String mobile; private String landline; @XStreamAsAttribute private Stri...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/main/java/com/baeldung/complex/pojo/Customer.java
xml-modules/xstream/src/main/java/com/baeldung/complex/pojo/Customer.java
package com.baeldung.complex.pojo; import com.thoughtworks.xstream.annotations.XStreamAlias; import java.util.Date; import java.util.List; @XStreamAlias("customer") public class Customer { private String firstName; private String lastName; private Date dob; private List<ContactDetails> contactDet...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/main/java/com/baeldung/pojo/CustomerPortfolio.java
xml-modules/xstream/src/main/java/com/baeldung/pojo/CustomerPortfolio.java
package com.baeldung.pojo; import com.thoughtworks.xstream.annotations.XStreamAlias; import java.util.List; @XStreamAlias("CustomerPortfolio") public class CustomerPortfolio { private List<CustomerAddressDetails> customerAddressDetailsList; public List<CustomerAddressDetails> getCustomerAddressDetailsList(...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/main/java/com/baeldung/pojo/ContactDetails.java
xml-modules/xstream/src/main/java/com/baeldung/pojo/ContactDetails.java
package com.baeldung.pojo; import com.thoughtworks.xstream.annotations.XStreamAlias; @XStreamAlias("ContactDetails") public class ContactDetails { private String mobile; private String landline; public String getMobile() { return mobile; } public void setMobile(String mobile) { ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/main/java/com/baeldung/pojo/AddressDetails.java
xml-modules/xstream/src/main/java/com/baeldung/pojo/AddressDetails.java
package com.baeldung.pojo; import com.thoughtworks.xstream.annotations.XStreamAlias; import java.util.List; @XStreamAlias("AddressDetails") public class AddressDetails { private String address; private String zipcode; private List<ContactDetails> contactDetails; public String getZipcode() { ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/main/java/com/baeldung/pojo/CustomerAddressDetails.java
xml-modules/xstream/src/main/java/com/baeldung/pojo/CustomerAddressDetails.java
package com.baeldung.pojo; import com.thoughtworks.xstream.annotations.XStreamAlias; import java.util.List; @XStreamAlias("CustomerAddressDetails") public class CustomerAddressDetails { private List<AddressDetails> addressDetails; private String firstName; private String lastName; private int age...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/main/java/com/baeldung/pojo/Customer.java
xml-modules/xstream/src/main/java/com/baeldung/pojo/Customer.java
package com.baeldung.pojo; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamImplicit; import java.util.Date; import java.util.List; @XStreamAlias("customer") public class Customer { private String firstName; private String lastName; private D...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/main/java/com/baeldung/utility/MyDateConverter.java
xml-modules/xstream/src/main/java/com/baeldung/utility/MyDateConverter.java
package com.baeldung.utility; import com.thoughtworks.xstream.converters.ConversionException; import com.thoughtworks.xstream.converters.Converter; import com.thoughtworks.xstream.converters.MarshallingContext; import com.thoughtworks.xstream.converters.UnmarshallingContext; import com.thoughtworks.xstream.io.Hierarch...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/main/java/com/baeldung/utility/MySingleValueConverter.java
xml-modules/xstream/src/main/java/com/baeldung/utility/MySingleValueConverter.java
package com.baeldung.utility; import com.baeldung.pojo.Customer; import com.thoughtworks.xstream.converters.SingleValueConverter; import java.text.SimpleDateFormat; import java.util.Date; public class MySingleValueConverter implements SingleValueConverter { @Override public boolean canConvert(Class clazz) {...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xstream/src/main/java/com/baeldung/utility/SimpleDataGeneration.java
xml-modules/xstream/src/main/java/com/baeldung/utility/SimpleDataGeneration.java
package com.baeldung.utility; import com.baeldung.pojo.ContactDetails; import com.baeldung.pojo.Customer; import java.util.ArrayList; import java.util.Calendar; import java.util.List; public class SimpleDataGeneration { public static Customer generateData() { Customer customer = new Customer(); ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/test/java/com/baeldung/jaxb/test/JaxbIntegrationTest.java
xml-modules/jaxb/src/test/java/com/baeldung/jaxb/test/JaxbIntegrationTest.java
package com.baeldung.jaxb.test; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.Date; import java.util.TimeZone; import jakarta.xml.bind.JAXBContext; import jakarta.xml.bind.JAXBException; import jakarta.xml.bind.Marshaller; import jakarta.xml.bind.Unmarshaller; import or...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/test/java/com/baeldung/jaxb/dateunmarshalling/JaxbDateUnmarshallingUnitTest.java
xml-modules/jaxb/src/test/java/com/baeldung/jaxb/dateunmarshalling/JaxbDateUnmarshallingUnitTest.java
package com.baeldung.jaxb.dateunmarshalling; import org.junit.Test; import jakarta.xml.bind.JAXBException; import javax.xml.datatype.DatatypeConfigurationException; import javax.xml.datatype.DatatypeFactory; import javax.xml.datatype.XMLGregorianCalendar; import java.io.InputStream; import java.text.ParseException; i...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/main/java/com/baeldung/jaxb/DateAdapter.java
xml-modules/jaxb/src/main/java/com/baeldung/jaxb/DateAdapter.java
package com.baeldung.jaxb; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import jakarta.xml.bind.annotation.adapters.XmlAdapter; public class DateAdapter extends XmlAdapter<String, Date> { private static final ThreadLocal<DateFormat> dateFormat = new ThreadLocal<DateForm...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/main/java/com/baeldung/jaxb/Book.java
xml-modules/jaxb/src/main/java/com/baeldung/jaxb/Book.java
package com.baeldung.jaxb; import java.util.Date; import jakarta.xml.bind.annotation.XmlAttribute; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlRootElement; import jakarta.xml.bind.annotation.XmlTransient; import jakarta.xml.bind.annotation.XmlType; import org.apache.commons.l...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/main/java/com/baeldung/jaxb/gen/package-info.java
xml-modules/jaxb/src/main/java/com/baeldung/jaxb/gen/package-info.java
@jakarta.xml.bind.annotation.XmlSchema(namespace = "http://www.baeldung.com/jaxb/gen", elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED) package com.baeldung.jaxb.gen;
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/main/java/com/baeldung/jaxb/gen/UserResponse.java
xml-modules/jaxb/src/main/java/com/baeldung/jaxb/gen/UserResponse.java
package com.baeldung.jaxb.gen; import java.io.Serializable; import java.util.Calendar; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlRootElement; import jakarta.xml.bind.annotat...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/main/java/com/baeldung/jaxb/gen/ObjectFactory.java
xml-modules/jaxb/src/main/java/com/baeldung/jaxb/gen/ObjectFactory.java
package com.baeldung.jaxb.gen; import jakarta.xml.bind.annotation.XmlRegistry; /** * This object contains factory methods for each * Java content interface and Java element interface * generated in the com.baeldung.jaxb.gen package. * <p>An ObjectFactory allows you to programatically * construct new instan...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/main/java/com/baeldung/jaxb/gen/UserRequest.java
xml-modules/jaxb/src/main/java/com/baeldung/jaxb/gen/UserRequest.java
package com.baeldung.jaxb.gen; import java.io.Serializable; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlRootElement; import jakarta.xml.bind.annotation.XmlType; /** * <p>Ja...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/main/java/com/baeldung/jaxb/jaxpvsjaxb/jaxp/JaxpExample.java
xml-modules/jaxb/src/main/java/com/baeldung/jaxb/jaxpvsjaxb/jaxp/JaxpExample.java
package com.baeldung.jaxb.jaxpvsjaxb.jaxp; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.DocumentBuilder; import org.w3c.dom.Document; public class JaxpExample { public static void main(String[] args) { try { DocumentBuilderFactory factory = DocumentBuilderFactory.n...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/main/java/com/baeldung/jaxb/jaxpvsjaxb/jaxb/Employee.java
xml-modules/jaxb/src/main/java/com/baeldung/jaxb/jaxpvsjaxb/jaxb/Employee.java
package com.baeldung.jaxb.jaxpvsjaxb.jaxb; import jakarta.xml.bind.annotation.XmlElement; public class Employee { @XmlElement private String id; }
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/main/java/com/baeldung/jaxb/jaxpvsjaxb/jaxb/Department.java
xml-modules/jaxb/src/main/java/com/baeldung/jaxb/jaxpvsjaxb/jaxb/Department.java
package com.baeldung.jaxb.jaxpvsjaxb.jaxb; import jakarta.xml.bind.annotation.XmlElement; public class Department { @XmlElement private String id; }
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/main/java/com/baeldung/jaxb/dateunmarshalling/DateAdapter.java
xml-modules/jaxb/src/main/java/com/baeldung/jaxb/dateunmarshalling/DateAdapter.java
package com.baeldung.jaxb.dateunmarshalling; import jakarta.xml.bind.annotation.adapters.XmlAdapter; import java.text.SimpleDateFormat; import java.util.Date; public class DateAdapter extends XmlAdapter<String, Date> { private static final String CUSTOM_FORMAT_STRING = "yyyy-MM-dd HH:mm:ss"; @Override p...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/main/java/com/baeldung/jaxb/dateunmarshalling/Book.java
xml-modules/jaxb/src/main/java/com/baeldung/jaxb/dateunmarshalling/Book.java
package com.baeldung.jaxb.dateunmarshalling; import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlRootElement; @XmlRootElement(name = "book") public class Book { @XmlElement(name = "title", required = true) private String title...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/main/java/com/baeldung/jaxb/dateunmarshalling/JaxbDateUnmarshalling.java
xml-modules/jaxb/src/main/java/com/baeldung/jaxb/dateunmarshalling/JaxbDateUnmarshalling.java
package com.baeldung.jaxb.dateunmarshalling; import jakarta.xml.bind.JAXBContext; import jakarta.xml.bind.JAXBException; import jakarta.xml.bind.Unmarshaller; import java.io.InputStream; public class JaxbDateUnmarshalling { public static final String DEFAULT_DATE_UNMARSHALLING_FILE = "default-date-unmarshalling....
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/main/java/com/baeldung/jaxb/dateunmarshalling/LocalDateTimeAdapter.java
xml-modules/jaxb/src/main/java/com/baeldung/jaxb/dateunmarshalling/LocalDateTimeAdapter.java
package com.baeldung.jaxb.dateunmarshalling; import jakarta.xml.bind.annotation.adapters.XmlAdapter; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; public class LocalDateTimeAdapter extends XmlAdapter<String, LocalDateTime> { private DateTimeFormatter dateFormat = DateTimeFormatter.of...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/main/java/com/baeldung/jaxb/dateunmarshalling/BookDateAdapter.java
xml-modules/jaxb/src/main/java/com/baeldung/jaxb/dateunmarshalling/BookDateAdapter.java
package com.baeldung.jaxb.dateunmarshalling; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlRootElement; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import java.util.Date; @XmlRootElement(name = "book") public class BookDateAdapter { @XmlElement(name = "t...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/main/java/com/baeldung/jaxb/dateunmarshalling/BookLocalDateTimeAdapter.java
xml-modules/jaxb/src/main/java/com/baeldung/jaxb/dateunmarshalling/BookLocalDateTimeAdapter.java
package com.baeldung.jaxb.dateunmarshalling; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlRootElement; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import java.time.LocalDateTime; @XmlRootElement(name = "book") public class BookLocalDateTimeAdapter { @Xm...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/jaxb/src/main/java/org/w3/_2001/xmlschema/Adapter1.java
xml-modules/jaxb/src/main/java/org/w3/_2001/xmlschema/Adapter1.java
package org.w3._2001.xmlschema; import java.util.Calendar; import jakarta.xml.bind.annotation.adapters.XmlAdapter; public class Adapter1 extends XmlAdapter<String, Calendar> { public Calendar unmarshal(String value) { return (jakarta.xml.bind.DatatypeConverter.parseDateTime(value)); } publ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/test/java/com/baeldung/xml/XMLDocumentWriterUnitTest.java
xml-modules/xml-2/src/test/java/com/baeldung/xml/XMLDocumentWriterUnitTest.java
package com.baeldung.xml; import org.apache.commons.io.FileUtils; import org.junit.After; import org.junit.Test; import org.w3c.dom.Document; import org.w3c.dom.Element; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; im...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/test/java/com/baeldung/xml/xml2pdf/XmlToPdfConverterUnitTest.java
xml-modules/xml-2/src/test/java/com/baeldung/xml/xml2pdf/XmlToPdfConverterUnitTest.java
package com.baeldung.xml.xml2pdf; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; import java.io.File; import static org.junit.jupiter.api.Assertions.assertTrue; public class XmlToPdfConverterUnitTest { private static final String BASE_PATH = "src/main/resources/xmltopdf/"; priv...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/test/java/com/baeldung/xml/xml2csv/Xml2CsvExampleUnitTest.java
xml-modules/xml-2/src/test/java/com/baeldung/xml/xml2csv/Xml2CsvExampleUnitTest.java
package com.baeldung.xml.xml2csv; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Asserti...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/test/java/com/baeldung/xml/xml2document/XMLStringToDocumentObjectUnitTest.java
xml-modules/xml-2/src/test/java/com/baeldung/xml/xml2document/XMLStringToDocumentObjectUnitTest.java
package com.baeldung.xml.xml2document; import org.junit.Test; import org.w3c.dom.*; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import java.io.IOExcep...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/test/java/com/baeldung/xml/jibx/CustomerUnitTest.java
xml-modules/xml-2/src/test/java/com/baeldung/xml/jibx/CustomerUnitTest.java
package com.baeldung.xml.jibx; import org.jibx.runtime.BindingDirectory; import org.jibx.runtime.IBindingFactory; import org.jibx.runtime.IUnmarshallingContext; import org.jibx.runtime.JiBXException; import org.junit.Test; import java.io.FileNotFoundException; import java.io.InputStream; import static junit.framewor...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/test/java/com/baeldung/xml/invalidcharacters/InvalidCharactersUnitTest.java
xml-modules/xml-2/src/test/java/com/baeldung/xml/invalidcharacters/InvalidCharactersUnitTest.java
package com.baeldung.xml.invalidcharacters; import org.w3c.dom.Document; import org.xml.sax.InputSource; import org.xml.sax.SAXParseException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import java.io.StringReader; import org.junit.jupiter.api.Test; import static org.j...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/test/java/com/baeldung/xml/tohashmap/XmlToHashMapUnitTest.java
xml-modules/xml-2/src/test/java/com/baeldung/xml/tohashmap/XmlToHashMapUnitTest.java
package com.baeldung.xml.tohashmap; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Map; import jakarta.xml.bind.JAXBException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.ap...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/test/java/com/baeldung/xml/attribute/Dom4jProcessorUnitTest.java
xml-modules/xml-2/src/test/java/com/baeldung/xml/attribute/Dom4jProcessorUnitTest.java
package com.baeldung.xml.attribute; import org.dom4j.DocumentException; import org.junit.jupiter.api.Test; import org.xml.sax.SAXException; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerFactoryConfigurationError; import ja...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/test/java/com/baeldung/xml/attribute/JaxpProcessorUnitTest.java
xml-modules/xml-2/src/test/java/com/baeldung/xml/attribute/JaxpProcessorUnitTest.java
package com.baeldung.xml.attribute; import org.junit.jupiter.api.Test; import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerFactoryConfigurationError; import ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/test/java/com/baeldung/xml/attribute/JooxProcessorUnitTest.java
xml-modules/xml-2/src/test/java/com/baeldung/xml/attribute/JooxProcessorUnitTest.java
package com.baeldung.xml.attribute; import org.junit.jupiter.api.Test; import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerFactoryConfigurationError; import ...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/test/java/com/baeldung/xmlhtml/stax/StaxTransformerUnitTest.java
xml-modules/xml-2/src/test/java/com/baeldung/xmlhtml/stax/StaxTransformerUnitTest.java
package com.baeldung.xmlhtml.stax; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import javax.xml.stream.XMLStreamException; import java.io.IOException; import java.net.URISyntaxException; import java.nio.file.Files; import java.nio.file.Paths; import static org.assertj.core.api.Assertion...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/test/java/com/baeldung/xmlhtml/freemarker/FreemarkerTransformerUnitTest.java
xml-modules/xml-2/src/test/java/com/baeldung/xmlhtml/freemarker/FreemarkerTransformerUnitTest.java
package com.baeldung.xmlhtml.freemarker; import com.baeldung.xmlhtml.stax.StaxTransformer; import freemarker.template.TemplateException; import org.junit.jupiter.api.Test; import javax.xml.stream.XMLStreamException; import java.io.IOException; import java.net.URISyntaxException; import java.nio.file.Files; import jav...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/test/java/com/baeldung/xmlhtml/jaxp/JaxpTransformerUnitTest.java
xml-modules/xml-2/src/test/java/com/baeldung/xmlhtml/jaxp/JaxpTransformerUnitTest.java
package com.baeldung.xmlhtml.jaxp; import org.junit.jupiter.api.Test; import org.xml.sax.SAXException; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.TransformerException; import java.io.IOException; import java.net.URISyntaxException; import java.nio.file.Files; import java.nio.fil...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/test/java/com/baeldung/xmlhtml/delhtmltags/RemoveHtmlTagsLiveTest.java
xml-modules/xml-2/src/test/java/com/baeldung/xmlhtml/delhtmltags/RemoveHtmlTagsLiveTest.java
package com.baeldung.xmlhtml.delhtmltags; import net.htmlparser.jericho.Renderer; import net.htmlparser.jericho.Segment; import net.htmlparser.jericho.Source; import org.htmlcleaner.CleanerProperties; import org.htmlcleaner.HtmlCleaner; import org.jsoup.Jsoup; import org.junit.jupiter.api.Test; import java.io.IOExcep...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/test/java/com/baeldung/xmlhtml/mustache/MustacheTransformerUnitTest.java
xml-modules/xml-2/src/test/java/com/baeldung/xmlhtml/mustache/MustacheTransformerUnitTest.java
package com.baeldung.xmlhtml.mustache; import com.baeldung.xmlhtml.stax.StaxTransformer; import org.junit.jupiter.api.Test; import javax.xml.stream.XMLStreamException; import java.io.IOException; import java.net.URISyntaxException; import java.nio.file.Files; import java.nio.file.Paths; import static org.assertj.cor...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/main/java/com/baeldung/xml/XMLDocumentWriter.java
xml-modules/xml-2/src/main/java/com/baeldung/xml/XMLDocumentWriter.java
package com.baeldung.xml; import org.w3c.dom.Document; import javax.xml.transform.*; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; import java.io.File; import java.io.FileWriter; import java.io.IOException; public class XMLDocumentWriter { public void write(Docume...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/main/java/com/baeldung/xml/xml2pdf/XmlToPdfConverter.java
xml-modules/xml-2/src/main/java/com/baeldung/xml/xml2pdf/XmlToPdfConverter.java
package com.baeldung.xml.xml2pdf; import com.itextpdf.text.Document; import com.itextpdf.text.Paragraph; import com.itextpdf.text.pdf.PdfWriter; import org.apache.fop.apps.FOUserAgent; import org.apache.fop.apps.Fop; import org.apache.fop.apps.FopFactory; import org.apache.fop.apps.MimeConstants; import javax.xml.tra...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/main/java/com/baeldung/xml/xml2csv/Xml2CsvExample.java
xml-modules/xml-2/src/main/java/com/baeldung/xml/xml2csv/Xml2CsvExample.java
package com.baeldung.xml.xml2csv; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.nio.file.Files; import java.nio.file.Paths; import javax.xml.stream.XMLInputFactory; import javax.xml.stream.XMLStreamConstants; import j...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/main/java/com/baeldung/xml/jibx/Identity.java
xml-modules/xml-2/src/main/java/com/baeldung/xml/jibx/Identity.java
package com.baeldung.xml.jibx; public class Identity { long customerId; public long getCustomerId() { return customerId; } public void setCustomerId(long customerId) { this.customerId = customerId; } }
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/main/java/com/baeldung/xml/jibx/Phone.java
xml-modules/xml-2/src/main/java/com/baeldung/xml/jibx/Phone.java
package com.baeldung.xml.jibx; public class Phone { private String number; public String getNumber() { return number; } public void setNumber(String number) { this.number = number; } }
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/main/java/com/baeldung/xml/jibx/Person.java
xml-modules/xml-2/src/main/java/com/baeldung/xml/jibx/Person.java
/* * Person.java 06.06.2008 * * Copyright 2008 Stefan J&auml;ger * */ package com.baeldung.xml.jibx; import org.apache.commons.lang3.builder.ToStringBuilder; public class Person extends Identity { private String name; public String getName() { return name; } public void setName(String name) { this....
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/main/java/com/baeldung/xml/jibx/Customer.java
xml-modules/xml-2/src/main/java/com/baeldung/xml/jibx/Customer.java
/* * Customer.java 06.06.2008 * * Copyright 2008 Stefan J&auml;ger * */ package com.baeldung.xml.jibx; import org.apache.commons.lang3.builder.ToStringBuilder; public class Customer { private Person person; private String city; private Phone homePhone; private Phone officePhone; public Person getPerso...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/main/java/com/baeldung/xml/tohashmap/Employee.java
xml-modules/xml-2/src/main/java/com/baeldung/xml/tohashmap/Employee.java
package com.baeldung.xml.tohashmap; public class Employee { private String id; private String firstName; private String lastName; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getFirstName() { return firstNam...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/main/java/com/baeldung/xml/tohashmap/XmlToHashMap.java
xml-modules/xml-2/src/main/java/com/baeldung/xml/tohashmap/XmlToHashMap.java
package com.baeldung.xml.tohashmap; import java.io.IOException; import java.io.StringReader; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.function.Function; import java.util.stream.Collectors; import javax.xml.parsers.DocumentBuilder; import j...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false
eugenp/tutorials
https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/xml-modules/xml-2/src/main/java/com/baeldung/xml/tohashmap/Employees.java
xml-modules/xml-2/src/main/java/com/baeldung/xml/tohashmap/Employees.java
package com.baeldung.xml.tohashmap; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlRootElement; import java.util.List; @XmlRootElement(name = "employees") public class Employees { private List<Employee> employeeList; @XmlElement(name = "employee") public List<Empl...
java
MIT
4463e58ffb73fe599bac2479abd84598c6e70a1a
2026-01-04T14:45:57.069771Z
false