Hi,
attach the files and I will take a look.
Gareth
On Wed, 26 Feb 2003, Tenwit wrote:
> Hi all,
>
> I'm using SAX2, on a solaris box. I'm parsing an XML file with
> a (I think) well-defined schema. Certainly XML Spy likes the
> schema. The XML file parses fine when I turn off schema checking,
> just complaining about all the tags it doesn't understand. When
> I turn on schema checking, I get a SigAbort after startDocument,
> but before any startElement (I'm fflushing all printfs etc.).
> The relevant/legible bits of gdb's bt and truss are included
> below. I presume that there's something screwy with my schema
> address, or something to do with namespaces (I'm not using
> namespaces in my own schema, but they're turned on in the code,
> as the docs on xml.apache.org require). Anyone have any pointers?
> I'm kinda concerned about the number of brks() (mem reallocs) in
> the truss output, but I could be chasing my tail here for weeks..
>
> I'm still learning about schemae (schemas?) so anything could be
> the matter. For example, I don't even know *where* my .xsd file
> should be sitting. Anyway: here's the schema header:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
> And here's the XML file header:
>
> <session id="0" passwd="testpasswd" siteId="wlgwkst012" userId="paulh"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="scorpion.xsd">
>
> I've also tried it without the xsi attributes in the XML file,
> but loading the schema via
>
> parser->setProperty(
> XMLUni::fgXercesSchemaNoNameSpaceExternalSchemaLocation,
> propertyValue);
>
>
> TIA,
>
> Paul
>
> -- A bit of gdb's bt --
> #6 0xfee97ff8 in xercesc_2_2::XMLURL::setURL (this=0xfcd18, baseURL=0xfcb98,
> relativeURL=0xffbef318) at XMLURL.cpp:475
> #7 0xfee96ea8 in xercesc_2_2::XMLURL::XMLURL (this=0xffbef568,
> baseURL=0xfcb98, relativeURL=0x1261f0) at XMLURL.cpp:215
> #8 0xfedf6d20 in xercesc_2_2::IGXMLScanner::resolveSchemaGrammar (
> this=0xfa530, loc=0x100fb0, uri=0xfefccf0e) at IGXMLScanner2.cpp:1326
> #9 0xfedf143c in xercesc_2_2::IGXMLScanner::scanStartTagNS (this=0xfa530,
> [EMAIL PROTECTED]) at IGXMLScanner.cpp:1997
> #10 0xfedee694 in xercesc_2_2::IGXMLScanner::scanContent (this=0xfa530,
> extEntity=false) at IGXMLScanner.cpp:837
> #11 0xfeded258 in xercesc_2_2::IGXMLScanner::scanDocument (this=0xfa530,
> [EMAIL PROTECTED]) at IGXMLScanner.cpp:201
> #12 0xfee2c450 in xercesc_2_2::SAX2XMLReaderImpl::parse (this=0xfc738,
> [EMAIL PROTECTED]) at SAX2XMLReaderImpl.cpp:555
> -- End gdb's bt --
>
> -- A bit of truss output --
> <These reads are reading the socket that the XML file is coming in
> on, I presume>
> read(4, "170301\018", 5) = 5
> read(4, "C9BBFB 0 81F dF6 y eD2B8".., 24) = 24
> read(4, "17030101B8", 5) = 5
> read(4, "BF * 7 . k 9BECC ~10 lE3".., 440) = 440
> <This is, obviously, my last bit of debug output>
> write(1, " R e a d 4 1 4 b y t".., 22) = 22
> brk(0x0010E8D8) = 0
> brk(0x001268D8) = 0
> brk(0x001268D8) = 0
> brk(0x001288D8) = 0
> brk(0x001288D8) = 0
> brk(0x0012A8D8) = 0
> brk(0x0012A8D8) = 0
> brk(0x0012C8D8) = 0
> brk(0x0012C8D8) = 0
> brk(0x0012E8D8) = 0
> sigaction(SIGABRT, 0x00000000, 0xFFBEE840) = 0
> <There's more stuff to do with SigAbort after here, but I've
> truncated it to keep this as tidy as reasonable.>
> -- End truss output --
>
>
> =====
> ------------------------------------------------------
> If once a man indulges himself in murder, very soon he
> comes to think little of robbing; and from robbing he
> next comes to drinking and Sabbath-breaking, and from
> that to incivility and procrastination.
> -- Thomas De Quincey (1785 - 1859)
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Gareth Reakes, Head of Product Development +44-1865-203192
DecisionSoft Limited http://www.decisionsoft.com
XML Development and Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]