Read/Write adobe xml

  • 13 years ago

    hi,

    I tried reading this xml-document thru vb.net, but got errors due to the ":".

    Does anyone know how to read this?
    Ps. I want to generate it from vb.net, and there would be multiple   <v:sampleDataSet  dataSetName="Haha x">

    (dataset for adobe illustrator)

    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN"    "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd" [
        <!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
        <!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">
        <!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">
        <!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">
        <!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
    <!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
    ]>
    <svg>
    <variableSets  xmlns="&ns_vars;">
        <variableSet  varSetName="binding1" locked="none">
            <variables>
                <variable  varName="o1" trait="textcontent" category="&ns_flows;"></variable>
                <variable  varName="o2" trait="textcontent" category="&ns_flows;"></variable>
                <variable  varName="pa" trait="textcontent" category="&ns_flows;"></variable>
                <variable  varName="ta" trait="textcontent" category="&ns_flows;"></variable>
                <variable  varName="text" trait="textcontent" category="&ns_flows;"></variable>
            </variables>
            <v:sampleDataSets  xmlns="http://ns.adobe.com/GenericCustomNamespace/1.0/" xmlns:v="http://ns.adobe.com/Variables/1.0/">
                <v:sampleDataSet  dataSetName="Haha 1">
                    <o1>
                        <p>yes - no</p>
                    </o1>
                    <o2>
                        <p>some text here</p>
                    </o2>
                    <pa>
                        <p>foobar</p>
                    </pa>
                    <ta>
                        <p>some bar</p>
                    </ta>
                    <text>
                        <p>
                            a lot of foo  
                            </p>
                    </text>
                </v:sampleDataSet>
            </v:sampleDataSets>
        </variableSet>
    </variableSets>
    </svg>









































Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“If Java had true garbage collection, most programs would delete themselves upon execution.” - Robert Sewell