Chris Keladis | 6 Mar 2005 04:32
Picon

ArgusRecord.xsd Bug?

Hi all,

I'm trying to work with an XML representation of Argus flow data and am 
having trouble getting the XSD file to validate correctly.

I'm using Xalan & Xerces-C++ to validate the XSD 
(http://qosient.com/argus/Xml/ArgusRecord.xsd)

The error spat out by Xalan is:

Error Occurred at file http://qosient.com/argus/Xml/ArgusRecord.xsd , 
line 214 , column {null}.Value 'Net Unkn' does not match regular 
expression facet '\c+'
SAXParseException: Value 'Net Unkn' does not match regular expression 
facet '\c+' (http://qosient.com/argus/Xml/ArgusRecord.xsd, line 214, 
column 44)

Some poking about i know where the problem is, i'm not sure about the 
fix however.

A bit before line 214 of ArgusRecord.xsd, we have "<xsd:restriction base 
= "xsd:NMTOKEN">" for the ICMP codes.

A Google search on NMTOKEN turned up this:

http://books.xmlschemata.org/relaxng/ch17-77146.html

Which says:

-------
(Continue reading)

Carter Bullard | 15 Mar 2005 15:11

RE: ArgusRecord.xsd Bug?

Hey Chris,
   Hmmm, I think I may have inserted that error
by accident when trying to improve the output for
human readers.  It originally was "NetUnkn" or
something like that.

   Seems like we need to fix raxml()?  I'd rather
change it than the XSD?

Carter

-----Original Message-----
From: owner-argus-info <at> lists.andrew.cmu.edu
[mailto:owner-argus-info <at> lists.andrew.cmu.edu] On Behalf Of Chris Keladis
Sent: Saturday, March 05, 2005 10:33 PM
To: Argus
Subject: [ARGUS] ArgusRecord.xsd Bug?

Hi all,

I'm trying to work with an XML representation of Argus flow data and am 
having trouble getting the XSD file to validate correctly.

I'm using Xalan & Xerces-C++ to validate the XSD 
(http://qosient.com/argus/Xml/ArgusRecord.xsd)

The error spat out by Xalan is:

Error Occurred at file http://qosient.com/argus/Xml/ArgusRecord.xsd , 
line 214 , column {null}.Value 'Net Unkn' does not match regular 
(Continue reading)

Chris Keladis | 16 Mar 2005 00:18
Picon

Re: ArgusRecord.xsd Bug?

Hi Carter,

Good question. I think i'll agree with you and change raxml(), it's 
still relatively clear without the space.

Besides, any app parsing the XSD/XML can blow it out to the full text 
representation if need be.

Regards,

Chris.

Carter Bullard wrote:

> Hey Chris,
>    Hmmm, I think I may have inserted that error
> by accident when trying to improve the output for
> human readers.  It originally was "NetUnkn" or
> something like that.
> 
>    Seems like we need to fix raxml()?  I'd rather
> change it than the XSD?
> 
> Carter
> 
> 
> -----Original Message-----
> From: owner-argus-info <at> lists.andrew.cmu.edu
> [mailto:owner-argus-info <at> lists.andrew.cmu.edu] On Behalf Of Chris Keladis
> Sent: Saturday, March 05, 2005 10:33 PM
(Continue reading)


Gmane