Search code examples
xmlcodesynthesis

xml modification using codesynthesis-xsd


I wanted to know if codesynthesis-xsd can be used to modify values of an xml. From the website I could see only about xml parsing. But in my program I want to do both parsing as well as editing the xml.


Solution

  • Yes, it is possible to

    • first parse the XML into the generated data object model
    • then make a modification
    • and finally serialize it back to XML

    See for instance the library example in the CodeSynthesis XSD source package: