473,387 Members | 1,536 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,387 software developers and data experts.

libxml, how to validate against a given dtd?

Hi,

I use libxml in C/C++.
I have an xml-file that has a dtd-definition.
and I have an other dtd that has not the same name as in the xml-file.

How can I validate that xml-file against my local dtd file?

I played around with xmllint but it seems to not work.?
Is there any example for "xmlValidateDtdFinal" function which I think
goes into that direction?
Any hints?

Many thanks,

Adib.
Jul 20 '05 #1
1 1829
In article <2h************@uni-berlin.de>,
Adib Taraben <th*****@yahoo.com> wrote:

[...]

% How can I validate that xml-file against my local dtd file?

% I played around with xmllint but it seems to not work.?

What did you try?

xmllint -dtdvalid local.dtd file.xml

ought to do what you want.

% Is there any example for "xmlValidateDtdFinal" function which I think
% goes into that direction?

Look at the handling of dtdvalid in the xmllint.c.
--

Patrick TJ McPhee
East York Canada
pt**@interlog.com
Jul 20 '05 #2

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

Similar topics

1
by: Ian Gregory | last post by:
Hi, One of our servers has recently been upgraded and as a result both libxml and XML::LibXML have been upgraded. The OS is OpenBSD 3.3. libxml has gone from version 2.4.18 to 2.5.7p1 and...
3
by: Generic Usenet Account | last post by:
The C/C++ libxml library from xmfsoft (www.xmlsoft.org ---- GNOME project) has in excess of 1000 APIs (http://www.xmlsoft.org/APIfunctions.html). This excessively high number of APIs is beyond...
3
by: Olav | last post by:
I need to do some cross-platform XML in C++. Previously I have used Xerces, but some Googeling indicated that many people prefer libxml. Also it is UTF-8, which is easier for us (Xerces is...
0
by: cnu | last post by:
Hi, I have a combo, that lists out the functions present in a dll. The user will select one of them. Then the user will enter some values for the arguments of the selected function. Now, I have...
0
by: nicolas | last post by:
Hello, I hesitated a lot before posting this topic here, but it seems more appropriate than posting it in c.l.perl. I would like to know how to change output encoding when using the perl...
1
by: aevans1108 | last post by:
Greetings All If this is the wrong place to post this question, please give me a push in the right direction. Thanks. I know there has to be a simpler way to do this, but this is as simple a...
6
by: LesleyW | last post by:
Hi Apologies if this is a really dumb question, but being new to XML and Schemas, I wonder if giving the namespace for eg xsd or xsi as a website address means that the user has to be online...
0
by: kellner | last post by:
Hello, I'm parsing a chunk of XML code and would like to add attribute values to individual tags if these are lacking. This is with perl 5.8.6, libxml2 2.6.17, XML::LibXML 1.58. Basically, I...
4
by: Alfie Noakes | last post by:
Using this Xpath expression, //table/row I have a nodeset result from a Xpath query which returns all the <row> elements for the given table in the following simeple XML structure..... ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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
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...

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.