Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Getting default value of an attribute from the DTD file

Thread Tools

Getting default value of an attribute from the DTD file

Posts: n/a
Please, excuse me if the question is a basic one but I have not found
any hint neither on XML4C samples, nor on Apache site. I'm using
XML4C. I'm parsing an xml file and I'm getting to an attribute which
is not explicitly specified in the xml file. The parser brings me its
default value specified in DTD (if any) as the attribute's value.

The question is: How do I get the default value if the attribute
explicitly appears in the xml file with some value?

Any help will be greatly appreciated. TIA.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
attr_reader, default attribute value, and rdoc of attribute dkmd_nielsen Ruby 6 11-26-2008 05:40 PM
external DTD with % as default attribute value Sjoerd Mullender XML 2 02-13-2008 08:14 AM
wrapping long attribute value (line-continuation for attribute value) XML 1 08-02-2006 01:18 PM
XML file from one DTD to another DTD test Java 2 07-28-2006 08:48 PM
Special character in dtd default attribute Ajay Goel XML 1 07-17-2003 07:51 AM