Catmandu-XSD
view release on metacpan or search on metacpan
# => Hello, I'm John how can I help you?
catmandu XSD --root ... --schema mixed.xsd --mixed TEXTUAL < data.xml
# The mixed text will be ignored, only the elements will survive
#
# Hello, I'm <name>John</name> how can I <bold>help</bold> you?
#
# => { name => 'John' , bold => 'help' }
catmandu XSD --root ... --schema mixed.xsd --mixed STRUCTURAL < data.xml
# The mixed elements will be a plain XML fragment string
#
# Hello, I'm <name>John</name> how can I <bold>help</bold> you?
#
# => $r = 'Hello, I'm <name>John</name> how can I <bold>help</bold> you?'
catmandu XSD --root ... --schema mixed.xsd --mixed XML_STRING < data.xml
MODULES
Catmandu::Importer::XSD
lib/Catmandu/XSD.pm view on Meta::CPAN
# => Hello, I'm John how can I help you?
catmandu XSD --root ... --schema mixed.xsd --mixed TEXTUAL < data.xml
# The mixed text will be ignored, only the elements will survive
#
# Hello, I'm <name>John</name> how can I <bold>help</bold> you?
#
# => { name => 'John' , bold => 'help' }
catmandu XSD --root ... --schema mixed.xsd --mixed STRUCTURAL < data.xml
# The mixed elements will be a plain XML fragment string
#
# Hello, I'm <name>John</name> how can I <bold>help</bold> you?
#
# => $r = 'Hello, I'm <name>John</name> how can I <bold>help</bold> you?'
catmandu XSD --root ... --schema mixed.xsd --mixed XML_STRING < data.xml
=head1 MODULES
=over
t/demo/mets/mets.xsd view on Meta::CPAN
<xsd:annotation>
<xsd:documentation xml:lang="en">
The structMap link group element <smLinkGrp> provides an implementation of xlink:extendLink, and provides xlink compliant mechanisms for establishing xlink:arcLink type links between 2 or more <div> elements in <structMap> ele...
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="smLocatorLink" minOccurs="2" maxOccurs="unbounded" >
<xsd:annotation>
<xsd:documentation xml:lang="en">
The structMap locator link element <smLocatorLink> is of xlink:type "locator". It provides a means of identifying a <div> element that will participate in one or more of the links specified by means of <smArcLink>...
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="ID" type="xsd:ID">
<xsd:annotation>
<xsd:documentation xml:lang="en">ID (ID/O): This attribute uniquely identifies the element within the METS document, and would allow the element to be referenced unambiguously from another element or document via an IDREF or an XPTR. For mo...
</xsd:annotation>
</xsd:attribute>
<xsd:attributeGroup ref="xlink:locatorLink"/>
</xsd:complexType>
( run in 2.059 seconds using v1.01-cache-2.11-cpan-364913b4093 )