a XMLDocument will not load if a
XmlAttribute contains something like this:
<xsd:attribute name="type" vs:readonly="true">
Error Message:
"[ERROR]:standalone" is not a valid XMLAttribute name
Short Question : Why?
a XMLDocument will not load if a
XmlAttribute contains something like this:
<xsd:attribute name="type" vs:readonly="true">
Error Message:
"[ERROR]:standalone" is not a valid XMLAttribute name
Short Question : Why?
Is vs defined, as an xml namespace?
Yes it is part of a namespace in a xsd file
I’m playing around with parsing Xsd’s this one looks like:
<xsd:attribute name="OnDataBinding" vs:omtype="event" vs:category="ASP.NET" vs:nonfilterable="true" vs:serverattribute="true" />
<xsd:attribute name="OnDisposed" vs:omtype="event" vs:category="ASP.NET" vs:nonfilterable="true" vs:serverattribute="true" />
<xsd:attribute name="OnInit" vs:omtype="event" vs:category="ASP.NET" vs:nonfilterable="true" vs:serverattribute="true" />
<xsd:attribute name="OnLoad" vs:omtype="event" vs:category="ASP.NET" vs:nonfilterable="true" vs:serverattribute="true" />
<xsd:attribute name="OnPreRender" vs:omtype="event" vs:category="ASP.NET" vs:nonfilterable="true" vs:serverattribute="true" />
<xsd:attribute name="OnUnload" vs:omtype="event" vs:category="ASP.NET" vs:nonfilterable="true" vs:serverattribute="true" />
the problem for me is now, that I’m not able to get the whole document loaded.
maybe we can allow a attribute name to have a colon inside.
But I will research more about this. Actualy I didn’t found anything useful on the web. Will research more
Right; but what I mean is that for any namespace prefix used (vs: xsd: etc are namespace prefixes) they have to be defined like:
xmlns:vs="…" in the same or an upper node.
Coming back to this…
The XmlDoc is to strict.
This is a valid xsd - file but can not be loaded because of the
check in XmlParser.ReadAttribute for a valid Uri.
will fail for the
xmlns:el="EL_Namespace"
<?xml version="1.0" encoding="utf-8"?>
<!-- Created with Liquid Studio 2019 (https://www.liquid-technologies.com) -->
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:el="EL_Namespace"
xmlns:sp="SP_Namespace">
<xs:include schemaLocation="ns1_part2.xsd"/>
<xs:import namespace="EL_Namespace" schemaLocation="ns2.xsd"/>
<xs:import namespace="SP_Namespace" schemaLocation="ns3.xsd"/>
<xs:element name="MotherOfBtns">
<xs:complexType>
<xs:sequence>
<xs:element ref="BTN"/>
<xs:element ref="el:BTN"/>
<xs:element ref="sp:BTN"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>