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

Tell nsgmls where to find a schema

Apologies for the basic (!) nature of this question but I just
have not been able to find an answer to my problem after several
googling sessions.

I want to use nsglms to parse an xml file against a public schema
but I cannot seem to get the parser to read the schema on my local
system.

When parsing against a DTD I always have a line in the individual
xml files something like

<!DOCTYPE production SYSTEM "c:\LocalPath\my.dtd">

Trying something similar for the schema, i.e.,

<...xsi:schemaLocation="c:\LocalPath\my.xsd">

does not work and nsgmls reports the error

nsgmls:... no document type declaration; will parse without
validation

My nsglms command line is

nsgmls -E0 -w xml -c\LocalPath\xml.soc -s -f errors.out
myfile.xml

Maybe I need something else on the command line?

I would be grateful for any suggestions.

Jan 18 '06 #1
4 1228
ali100 wrote:
I want to use nsglms to parse an xml file against a public schema
but I cannot seem to get the parser to read the schema on my local
system.


nsgmls does not do validation against W3C XMLSchema. And it's not very
good at parsing XML in general.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jan 18 '06 #2
aah... no wonder I was having problems.

Can you/anyone recommend a stand alone parser that will perform the
task I described?

Or will I need something like xerces (which looks far more involved in
setting up and getting to run from the command line)

I am on a win XP machine.

Thanks for any help.

Jan 18 '06 #3
ali100 wrote:
Can you/anyone recommend a stand alone parser that will perform the
task I described?

Or will I need something like xerces (which looks far more involved in
setting up and getting to run from the command line)


I use Xerces in my applications. But other people use different tools.
Henry S. Thompson seems to use XSV.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jan 19 '06 #4
The public W3C XML Schema home page [1] has an extensive listing of
tools including validators.

ht

[1] http://www.w3.org/XML/Schema.html
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Jan 19 '06 #5

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

Similar topics

1
by: Victor Hadianto | last post by:
Hi, I have a simple XSD for example like this: <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="qualified">...
2
by: Jozef | last post by:
Hello, I'm trying to find a way to see who or how many connections, (or both) are open on a single access database. What I'm trying to do is find out who is logged in and hopefully...
1
by: John A Grandy | last post by:
Visual Studio 2005 RC. I create my first ASP.NET 2.0 Web Site at c:\code\my-app , and when I attempt to compile I receive about 30 errors related to the compiler not being able to find schema...
0
by: Derek | last post by:
I am creating an intranet using Visual Web Developer Express Edition. Everything has been working OK until yesterday when I started getting 62 messages all beginning "Could not find schema...
3
by: Steve Kostecke | last post by:
Hi, I found nsgmls, compiled it, but I can't figure out where I'm supposed to put the catalog file. Also the "pubtext" directory that contains the DTD and such files seem t obe out of date (no...
0
by: jhansen | last post by:
I am getting informational warnings about the following app.config and indicate the following. I am using C# visual studio 2005 and used the Settings.settings to set up my values scoped as...
13
by: Jiho Han | last post by:
Here's the issue. You have a class, Class Person { public int id; public string firstname; public string lastname; }
7
by: Laurence | last post by:
Hi folks, Who knows how to retrieve the owner of SQL objects, such as SCHEMA, TABLE etc.? Is GRANTOR within catalog view owner? Thanks, Laurence
0
by: brat2 | last post by:
using nsgmls under freebsd for validating some xhtml document, I met such problem: nsgmls is not able to get system id via network (http://www.wapforum.org/DTD/....xhtml-mobile10.dtd) Is this a...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.