Jump to content

tvtiger

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About tvtiger

  • Rank
    Newbie
  1. Yes, I'm using MSXML6.0 SAX.Thank you very much for your help.
  2. Thanks for reply.It's not giving same error with MSXML6. Now it's throwing error on last line of XML as "The node is neither valid nor invalid because no DTD/Schema declaration was found".Thnks,
  3. Greetings,I am trying to validate XML against XSD using MSXML4 (Visual basic 6). XML validate fine in XMLSPY but when I try to validate it using MSXML in VB6 application. I get an application error as "Memory could not read at "0x………" After further investigation I figured out that it's GEOMETRY tag is causing a problem. I am not sure what's causing this error, can anybody help me out on this error. My XSD file is as follows------------------------------------<?xml version="1.0" ?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="INVENTORY"> <xsd:complexType> <xsd:sequence> <xsd:element name="LOCATION" type="LOCATION" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:complexType name="LOCATION"> <xsd:all> <xsd:element name="LOCATION_CODE" type="LOCATION_CODE"/> <xsd:element name="GEOMETRY"> <xsd:complexType> <xsd:complexContent mixed="true"> <xsd:extension base="xsd:anyType"> <xsd:attributeGroup ref="XY"/> </xsd:extension> </xsd:complexContent> </xsd:complexType> </xsd:element> </xsd:all> </xsd:complexType> <xsd:simpleType name="LOCATION_CODE"> <xsd:restriction base="xsd:string"> <xsd:maxLength value="20"/> </xsd:restriction></xsd:simpleType><xsd:attributeGroup name="XY"> <xsd:attribute name="X" type="xsd:decimal"/> <xsd:attribute name="Y" type="xsd:decimal"/></xsd:attributeGroup></xsd:schema>----------------------------END OF XSD-------------------------------XML File-----------------------<?xml version="1.0" encoding="utf-8" ?><INVENTORY xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="A.xsd"><LOCATION><LOCATION_CODE>XXX:YYY:A0000001</LOCATION_CODE><GEOMETRY>X="100000.000"Y="100000.000"</GEOMETRY></LOCATION></INVENTORY>-------------END OF XML-------------Thanks in advance,
×
×
  • Create New...