Hi all,
I don't understand why this regular expression for validation international phone number gives an error when embedded on xml-schema:
<xs:simpleType name="phoneType">
<xs:restriction base="xs:string">
<xs:pattern value="^\+(?:[0-9] ?){6,14}[0-9]$" />
</xs:restriction>
</xs:simpleType>
What's wrong with it? Does suppo...
In Microsoft SQL Server 2005, there is the option to store within the database under "Database -> Type -> XML Schema Collection" a XML schema to validate against if you are viewing the database within SQL management studio.
What I need to do is store the schema under the specified path above, and then within code pull that schema out t...
Only just found out about this.
Does anyone have any links to some good sites talking about this?
Its features, bugs, limitations.
(obviously I have searched, so am looking for info that wont be on page 1 of Google :D )
...
I have an XML document and associated schema that defines several attributes as having the xs:boolean type. The lexical values for xs:boolean are true, false, 1, and 0, so it seems that to correctly select attributes with a particular boolean value I'd have to write something like:
@attribute='true' or @attribute='1'
or
@attribute='f...
I am getting custom schema data back from an AJAX call and I need to parse it using jQuery. Any idea how to do this?
Here's the XML:
<xsd:get_customer_summary_response xmlns:xsd="http://com/acmeco/ovm/cas/xsd">
<xsd:customer_details>
<typ:phone_number xmlns:typ="http://com/acmeco/ovm/cas/types">1.555.5553002</typ:phone_n...
Can an XML Schema document specify that two items must co-occur?
For example, that there are two optional elements, and they are either both present or both absent.
a b? c d? e # giving only {ace, abcde}
# instead of all combinations: {ace, acde, abce, abcde}
<element name="root">
<complexType>
<sequence>
...
I need to validate XML files against a wide array of constraints: type and/or format of element's text, co-occurrences, date comparisons and date math, as well as some user defined rules from a database (i.e. element X can only contain child elements A, B, and C) and I am not sure how to go about it.
The current incarnation of this ap...
Hi is it possible to only allow a range of numbers in an ATTLIST?
I know you can have an enumeration of a set as follows:
But it is possible to have 0 - 100, without having to type all 100 numbers? Thank you.
...
Let's say you want to allow some particular XML element to occur 0+ times. For example, the <record> element can occur multiple times:
<repository>
<record>Record 1</record>
<record>Record 2</record>
<record>Record 3</record>
</repository>
Are there any compelling reasons to include a parent element as a container for these? F...
I load an XmlSchema from a file and it has other schema in its schema.Includes.
For this included XmlSchema, the Elements and SchemaTypes properties are in length 0. However they should contain some element/types according to the actual schema. This included XmlSchema does have the elements and complex types in its Items property, so wh...
Hi,
We've an XML contains data. We need to extract data from it and move it in to a different XML. Both XMLs are different in structure.
We have Altova and we want to do this job by using it. Any solution on this; which Altova tool will be best for this job and how?
Thanks.
...
Is there a way to refer to a group of non-nested XML tags in XSD schema, e.g.:
<foo>
<a>a_val</a>
<b>b_val</b>
<c>c_val</c>
<d>d_val</d>
</foo>
<bar>
<e>e_val</e>
<b>b_val2</b>
<c>c_val2</c>
<f>f_val</f>
</bar>
What I want to achieve is to have tags <b> and <c> extracted separately as complexType or abstract elemen...
I'm stuck trying to define an XSD containing a field that can haveonly one of the following three values:
Green
Red
Blue
Essentially, I want to define a strict enumeration at the Schema level.
...
Is there any reason why <xs:group> cannot appear inside <xs:all>, but only inside <xs:sequence>?
Let's see an example. Say, there is a list of tags (<a> to <d> and <e> to <f> - see example below) which do not appear in any particular order, but always wrapped into another object (either <foo> or <bar>); <foo>={<a>, <b>, <c>, <d>}; <bar>...
I've been looking around for a way to programmatically parse XSD files to generate an XML mapping so that I can take any XSD file and create a parser that will parse any XML file that conforms to it, and my google-fu has been coming up short.
XSOM looks promising, as it will parse an XSD file and make all its attributes available in a ...
Hi,
is it possible to script a .XML file?
what we are after is there will be a .XML file on a webserver (IIS) for e.g. www.myserver.com/update.xml
which when called should execute it as a script rather than serve it as a file.
when the .XML file is called it will excute a series of calls example make a DB trip and then return the re...
Is there either:
A freely available program that can convert the output of a Cisco's "show conf" to some sensible XML, like this (probably not very sensible) block form:
Is there either:
A freely available program that can convert the output of a Cisco's "show conf" to some sensible XML, like this (probably not very sensible) block for...
What is the difference between the <xs> and <xsd> tags in XML schema files?
...
Is it possible to have multiple inheritance in XML schemas, if so how?
Example
<xs:schema xmlns:xs="http://www.w3.org/2001/Schema" ....>
<xs:complexType name="Account">
<xs:sequence>
<xs:element name="balance" type="xs:decimal"/>
<xs:element name="accountNo" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:c...
Hi,
using an in Document DTD I did the following:
file.xsl:
<!DOCTYPE xsl:stylesheet[
<!ENTITY red "rgb(255,0,0)">
]>
<xsl:stylesheet>
[...]
<xsl:attribute name="color">&red;</xsl:attribute>
[...]
</xsl:stylesheet>
I wanted to change everything to XML-Schema. So I tried:
file.xsd:
<xsd:schema xmlns:xsd="http://www.w3.o...