All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opencms.xml2json.simple-test.xml Maven / Gradle / Ivy

Go to download

OpenCms is an enterprise-ready, easy to use website content management system based on Java and XML technology. Offering a complete set of features, OpenCms helps content managers worldwide to create and maintain beautiful websites fast and efficiently.

The newest version!
<?xml version="1.0" encoding="UTF-8" ?>
<entries>
    <entry name="input">
    <![CDATA[
    
<?xml version="1.0" encoding="UTF-8"?>

<XjParents xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="opencms://system/modules/org.opencms.test.xml2json/schemas/xjparent.xsd">
  <XjParent language="en">
    <Text>text1</Text>
    <OptText>text2</OptText>
    <MultiText>test3</MultiText>
    <MultiText>test4</MultiText>
    <SingleNested>
        <Text>hello world</Text>
    </SingleNested>
    <MultiNested>
        <Text>foo</Text>
    </MultiNested>
    <MultiNested>
        <Text>bar</Text>
    </MultiNested>
    
  </XjParent>
</XjParents>

    
    ]]>
    </entry>
    <entry name="output">
    <![CDATA[
        { 
            "Text" : "text1", 
            "OptText" : "text2", 
            "MultiText" : ["test3", "test4"],
            "SingleNested" : {
                "Text" : "hello world"
            },
            "MultiNested" : [ 
                {"Text" : "foo"},
                {"Text" : "bar"}
            ],
            "Choice": []
        }
    ]]>
    </entry>
</entries>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy