[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Validation failing using cXML

Posted on 2006-07-07
2
Medium Priority
?
541 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

649 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