Ticket #120 (assigned defect)

Opened 12 months ago

Last modified 4 months ago

Issue with XML generated with DocType

Reported by: sonnychee Owned by: ser
Priority: high Milestone: 3.1.8
Component: DOM Version: 3.1.4
Severity: normal Keywords:
Cc: Ruby version: Other
Operating system: Windows

Description (last modified by ser) (diff)

Hey Guys,

The following declaration generates the accompanying xml:

doc << DocType.new('MY SYSTEM', 'c:/myschema.dtd')

<root>
...
</root>
<!DOCTYPE MY SYSTEM c:/myschema.dtd>

I'm not an expert in xml, but I believe

1. the !DOCTYPE declaration should appear at the top of the document (my xml editor is saying the document is not valid, otherwise). 2. the url for the dtd should be quoted.

Version info is as follows:

ruby -vrrexml/rexml -e 'p REXML::VERSION,PLATFORM'
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
"3.1.7.1"
"i386-mswin32"

Sonny.

Change History

Changed 4 months ago by ser

  • status changed from new to assigned
  • description modified (diff)

Reformatted report for readability.

Changed 4 months ago by ser

Confirmed.

Changed 4 months ago by ser

  • milestone set to 3.1.8
Note: See TracTickets for help on using tickets.