Validating xCBL documents with .NET

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • XML Schema Validation

    Validating xCBL documents with .NET

    I am creating a .NET application that will be receiving
    XML purchase order documents in xCBL 2.x, xCBL 3.0 and
    xCBL 3.5 format. I'm trying to figure out how to validate
    these XML docs against the appropriate schemas in .NET.
    Most of the xCBL documents will be defined by the SOX
    schema.

    I'm trying to use a Schema collection to add the SOX
    schema to it, but I receive a "The URI prefix is not
    recognized" when I try to add the xCBL 3.5 SOX to the
    Schema collection (I am able to add the xdr and xsd
    versions).

    Has anyone had to do this, or at least validate xCBL
    documents against the SOX schema? If so, how did you do
    it? Thanks.
  • Chris Lovett

    #2
    Re: Validating xCBL documents with .NET

    You will have to find a SOX to XSD converter because .NET only supports the
    W3C XML Schema standard (XSD). It appears that xCBL 4.0 uses XSD. There is
    some sample code in the xmlint sample posted to www.gotdotnet.com that shows
    you how to validate XML documents using .NET.

    "XML Schema Validation"
    <mike.woodREMOV E_ALL_CAPS@REMO VE_ALL_CAPSsoft warespectrum.co m> wrote in
    message news:07d501c3ad 70$4945f610$a10 1280a@phx.gbl.. .[color=blue]
    > I am creating a .NET application that will be receiving
    > XML purchase order documents in xCBL 2.x, xCBL 3.0 and
    > xCBL 3.5 format. I'm trying to figure out how to validate
    > these XML docs against the appropriate schemas in .NET.
    > Most of the xCBL documents will be defined by the SOX
    > schema.
    >
    > I'm trying to use a Schema collection to add the SOX
    > schema to it, but I receive a "The URI prefix is not
    > recognized" when I try to add the xCBL 3.5 SOX to the
    > Schema collection (I am able to add the xdr and xsd
    > versions).
    >
    > Has anyone had to do this, or at least validate xCBL
    > documents against the SOX schema? If so, how did you do
    > it? Thanks.[/color]


    Comment

    Working...