Solved

Validation failing using cXML

Posted on 2006-07-07
2
513 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 125 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
C# Delete from XML 10 37
Create and populate iFrame onClick of a button? 1 45
Problem to page 4 26
Cordova Camera plugin fails 2 21
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to dynamically set the form action using jQuery.

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now