Note that there are some explanatory texts on larger screens.

plurals
  1. POextract element name values from XSD and import into excel
    primarykey
    data
    text
    <p>I have an XSD. I would like to extract the values of "element name=", and write them onto an excel sheet. How do i do this?</p> <p>The ones in my mind are, bufferedreader/XPATH/jaxb/Apache POI. But I haven't used any of these before. Please help!</p> <p>Sample input:</p> <pre><code>&lt;?xml version="1.0" ?&gt; &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:gw="XX" xmlns="XXXX" targetNamespace="XXXXX" elementFormDefault="qualified" xmlns:ns0="XXXXXX" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.1"&gt; &lt;xsd:annotation&gt; &lt;xsd:appinfo&gt; &lt;jaxb:schemaBindings&gt; &lt;jaxb:package name="XXXXXXXX" /&gt; &lt;/jaxb:schemaBindings&gt; &lt;/xsd:appinfo&gt; &lt;/xsd:annotation&gt; &lt;xsd:import namespace="XXXXXXXX" /&gt; &lt;xsd:element name="sample" type="sample" nillable="true" /&gt; &lt;xsd:complexType name="sample"&gt; &lt;xsd:sequence&gt; &lt;xsd:element name="tempTerms" minOccurs="0" nillable="true"&gt; &lt;xsd:complexType&gt; &lt;xsd:sequence&gt; &lt;xsd:element name="Input" minOccurs="0" maxOccurs="unbounded" nillable="true" type="ns0:tempTerm" /&gt; &lt;/xsd:sequence&gt; &lt;/xsd:complexType&gt; &lt;/xsd:element&gt; &lt;xsd:element name="PatternCode" minOccurs="0" nillable="true" type="xsd:string" gw:type="java.lang.String" /&gt; &lt;/xsd:sequence&gt; &lt;/xsd:complexType&gt; &lt;/xsd:schema&gt; </code></pre> <p>sample output:</p> <p>an XLS where the column names are:</p> <pre><code>sample tempTerms Input PatternCode </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload