xsl-list
[Top] [All Lists]

Re: XML VALIDATION

2004-05-22 09:13:51
At 8:55 PM +0530 5/22/04, Arul Kumar wrote:
Are there any possibilities to validate the below appended XML against DTD??!! 

First; This question is off topic; this is XSL-List, not a forum for
general discussion of matters XML-ish.  Please take future questions
about XML (that are not also related to XSL) to a more appropriate forum. 

Here the delimiters are makes difference.

XML:
<?xml version="1.0"?>
[address]
  [name][fnm]Charles[:fnm][snm]Steve[:snm][:name]
  [street]120, 1st cross[:street]
  [addline]2nd Block[:addline]
  [city]London[:city]
  [country]UK[:country]
  [zip]000-111[:zip]
[:address]

Second: this is not an XML file, and XML tools will not validate it
against a DTD because it is NOT XML. (In SGML it is possible to 
change the markup delimiters; in XML it is not.) If you really want
to work with files like the one you describe I suggest looking 
into SGML tools. If you want to use the (much larger) set of XML
tools your data must be XML; which means that you must use 
< > and </ > to start and end your tags. 

-- Tommie
-- 
====================================================================== 
B. Tommie Usdin                        
mailto:btusdin(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc.                http://www.mulberrytech.com    
17 West Jefferson Street                           Phone: 301/315-9631 
Suite 207                                    Direct Line: 301/315-9634 
Rockville, MD  20850                                 Fax: 301/315-8285 
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in  XML and SGML
======================================================================


<Prev in Thread] Current Thread [Next in Thread>