473,396 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

XML related question

I'm working on an application that I'd like to add XML support to in
order to communicate with another app on a remote server. The other
side already has the data I need in XML files ready to be recieved by
my end. The problem is that it's in a specific schema-type (cXML).

So far, I have my end recieving the datafeed, decrypting the XML, and
storing it in a string. However, when I load it into an XmlDocument
type (I'm using C#, by the way), I get invalid markup errors. The
problem is that the schema type being used by the other side defines
various tag syntax in the dtd (which is referenced in the DOCTYPE
declaration) that don't parse as generic XML.

Is there an elegant approach to this that is supported in the standard
..Net library? Looking around MSDN so far has proved fruitless.
Basically, I need a way to tell the document object about the specific
schema. I'm not entirely sure this is even possible with the .Net
framework. Perhaps I need to create a custom class for this document
type?

Nov 10 '06 #1
1 1137
Bruce C. Miller wrote:
I'm working on an application that I'd like to add XML support to in
order to communicate with another app on a remote server. The other
side already has the data I need in XML files ready to be recieved by
my end. The problem is that it's in a specific schema-type (cXML).

So far, I have my end recieving the datafeed, decrypting the XML, and
storing it in a string. However, when I load it into an XmlDocument
type (I'm using C#, by the way), I get invalid markup errors. The
problem is that the schema type being used by the other side defines
various tag syntax in the dtd (which is referenced in the DOCTYPE
declaration) that don't parse as generic XML.

Is there an elegant approach to this that is supported in the standard
.Net library?
If you have a DTD referenced by a DOCTYPE declaration then .NET should
be able to use that. With .NET 2.0 however DTDs are by default
prohibited thus if you want to parse an XML document with .NET 2.0 you
need to use XmlReaderSettings with ProhibitDtd set to false:
<http://msdn2.microsoft.com/en-us/library/system.xml.xmlreadersettings.prohibitdtd.aspx>

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Nov 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tomba | last post by:
:(( posted a question here 3 days ago, now I am able to come look at answers it's no more available :(( so... @supapablo: if you still have your answer, mail me... tomba at f1technical dot net...
7
by: Maxwell Hammer | last post by:
Hi all, This is related to an earlier post 'Help with thread related tracebacks'...for which I have had no feedback yet :-( How should a thread complete i.e. how should it exit? Reading the...
0
by: QWERTY | last post by:
--------------Boundary-00=_O5I3QL80000000000000 Content-Type: Multipart/Alternative; boundary="------------Boundary-00=_O5I3LVC0000000000000" --------------Boundary-00=_O5I3LVC0000000000000...
17
by: Steve Jorgensen | last post by:
Terminology question: Is there a term for a set of records related directly or indirectly by key value in several tables? For example, a single invoice record and its line item records -or- a...
2
by: Colm O'Hagan | last post by:
Hi there, I having a problem with a database I'm setting up, I would be delighted if someone out there could help. The database I'm setting up is a task register datebase, it will be used to...
7
by: Susan Bricker | last post by:
Greetings. As a relative newcomer to Access, I am having trouble deciding on how to design the form flow for updating and creating related records. I'm looking for a variety of suggestions so...
0
by: archana | last post by:
Hi all, I have some confusion related to threading and autoresetevent. I have 5 threads running for each i have autoresetevent which i am setting through thread procedure. On each of event...
2
by: archana | last post by:
Hi all, I don't have much of knowledge about threading. I have on .net application where in main i am starting one secondary thread. like
0
by: orit | last post by:
Again, I have the following xml code: <?xml version="1.0" ?> <course> <globalProperties> <externalMetadata> <source>ADL</source> <model>ADL SCORM 1.0</model> </externalMetadata>...
4
by: HLCruz via AccessMonster.com | last post by:
I am working with a database that has client information separated in to 4 related tables - tFolder, tAddress, tEmail, tPhone number. In addition there are related tables tGifts and tCalls. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.