•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the XML, XSLT and XPATH section within the Software Development category of DaniWeb, a massive community of 361,551 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,061 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our XML, XSLT and XPATH advertiser:
Views: 400 | Replies: 0
![]() |
•
•
Join Date: Nov 2006
Posts: 15
Reputation:
Rep Power: 2
Solved Threads: 0
Hi,
this is my xml fragment
<?xml version="1.0" encoding="ISO-8859-1"?>
<Table xmlns="urn:UMS-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance/UMS_APP.xsd">
<Row>
<APP_ID>skumar</APP_ID>
<APP_NAME>1</APP_NAME>
<APP_DESC>Sample test application 2</APP_DESC>
<ACTIVE>true</ACTIVE>
</Row>
<Row>
<APP_ID>10</APP_ID>
<APP_NAME>Test3</APP_NAME>
<APP_DESC>sample test</APP_DESC>
<ACTIVE>true</ACTIVE>
</Row>
<Row>
<APP_ID>11</APP_ID>
<APP_NAME>Test4</APP_NAME>
<ACTIVE>true</ACTIVE>
</Row>
</Table>
this is the xsd schema file for validating the above xml
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="UMS_APPS"
targetNamespace="urn:UMS-application"
xmlns="urn:UMS-application" elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Table">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="Row">
<xs:complexType>
<xs:sequence>
<xs:element name="APP_ID" type="xs:positiveinteger"/>
<xs:element name="APP_NAME" type="xs:string" />
<xs:element minOccurs="0" name="APP_DESC" type="xs:string" default="" />
<xs:element name="ACTIVE" type="xs:boolean" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
when I validate the xml using the xsd it is saying validation success.
when I chenge the appid in xml to a string ,or appname to a integer value..still it running with out any errors.wher appid is of type integer and appname is of type string.plzz tell me whether there is any mistake in xsd file.
thanks.
this is my xml fragment
<?xml version="1.0" encoding="ISO-8859-1"?>
<Table xmlns="urn:UMS-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance/UMS_APP.xsd">
<Row>
<APP_ID>skumar</APP_ID>
<APP_NAME>1</APP_NAME>
<APP_DESC>Sample test application 2</APP_DESC>
<ACTIVE>true</ACTIVE>
</Row>
<Row>
<APP_ID>10</APP_ID>
<APP_NAME>Test3</APP_NAME>
<APP_DESC>sample test</APP_DESC>
<ACTIVE>true</ACTIVE>
</Row>
<Row>
<APP_ID>11</APP_ID>
<APP_NAME>Test4</APP_NAME>
<ACTIVE>true</ACTIVE>
</Row>
</Table>
this is the xsd schema file for validating the above xml
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="UMS_APPS"
targetNamespace="urn:UMS-application"
xmlns="urn:UMS-application" elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Table">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="Row">
<xs:complexType>
<xs:sequence>
<xs:element name="APP_ID" type="xs:positiveinteger"/>
<xs:element name="APP_NAME" type="xs:string" />
<xs:element minOccurs="0" name="APP_DESC" type="xs:string" default="" />
<xs:element name="ACTIVE" type="xs:boolean" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
when I validate the xml using the xsd it is saying validation success.
when I chenge the appid in xml to a string ,or appname to a integer value..still it running with out any errors.wher appid is of type integer and appname is of type string.plzz tell me whether there is any mistake in xsd file.
thanks.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb XML, XSLT and XPATH Marketplace
Similar Threads
- XML Schema/Relational Schema in DB29 (XML, XSLT and XPATH)
- XML Parsing Error: junk after document element (XML, XSLT and XPATH)
- Writing Xml From datasource with DTD (C#)
- XML Schema Question (RSS, Web Services and SOAP)
- XML data to database (RSS, Web Services and SOAP)
- Problem with Deployment Descriptor (Java)
- parsing error (XML file-java-schema) (Java)
Other Threads in the XML, XSLT and XPATH Forum
- Previous Thread: I Need a Help on WAP Application on Database connectivity
- Next Thread: value-of select and <h1> tag


Linear Mode