[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Validation failing using cXML

Posted on 2006-07-07
2
Medium Priority
?
544 Views
Last Modified: 2013-11-19
I get his error: "The parameter entity replacement text must nest properly within markup declarations. An error occurred at file:///T:/Clients/L_c/Lone Star Supplies/Invoicer/Invoicer/bin/InvoiceDetail.dtd, (3929, 79)."

 the XML doc: http://qdataviewer.com/downloads/Invoice2.xml

 the dtd doc: http://qdataviewer.com/downloads/InvoiceDetail.dtd

Below is my code:
 
        Dim source As String = AppDomain.CurrentDomain.BaseDirectory & "invoice2.xml"
        Dim XMLDoc2 As Xml.XmlTextReader
        Dim xr As Xml.XmlValidatingReader
        XMLDoc2 = New Xml.XmlTextReader(source)
        xr = New Xml.XmlValidatingReader(XMLDoc2)
        xr.ValidationType = Xml.ValidationType.DTD

        Try
            While xr.Read()
                Debug.Write(i)
                i = i + 1
            End While
            xr.Close()
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
0
Comment
Question by:cpv_flex
2 Comments
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 375 total points
ID: 17062129
Hi cpv_flex,

there is nothing wrong with the DTD
apart from an attribute "property" that doesn't get a correct value, the DTD is valid and the XML is valid according to the DTD

I would change line 3929 like this though
<!ELEMENT ds:Object (#PCDATA | ds:Signature | ds:SignatureProperties | ds:Manifest | %Object.ANY;)* >
a bar added and spaces added

and change line 3830 like this
<!ENTITY % Object.ANY ' xades:QualifyingProperties | cXMLSignedInfo '>
bar removed and spaces added

Cheers!
0
 

Author Comment

by:cpv_flex
ID: 17078233
Gertone,

I don't want to change the DTD becuase it is an industry standard, but I'll just ingore the message I was getting.

Thanks.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question