[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Ten Years Later - XML 1.0 Fifth Edition?
> Date: Mon, 18 Feb 2008 21:39:45 +0530 > From: gandhi.mukul@g... > To: xml-dev@l... > CC: nsushkin@o... > Subject: Re: Ten Years Later - XML 1.0 Fifth Edition? > > On Feb 18, 2008 8:27 PM, Nicholas Sushkin wrote: >> In many cases the files and directories are named after music pieces and >> created by a music management program from the music title. Those names >> contain a lot of spaces, quotes, punctuation, non-ASCII and other >> characters. > > Thanks for the information. I have not closely looked at music file > names. It surely sounds vastly incompatible to XML name rules. > > The problem I was having is - Given a root directory, I needed to > generate a XML hierarchy depicting the file system hierarchy, starting > from the given root. I wrote a recursive Java program and converted > the information to XML, using Xerces DOM implementation. > > Some of the directory/file names didn't conform to the XML name > conventions. Like, some directory names started with numeric. Some > contained characters like - (hyphen), ~ etc. > > Would somebody agree with me, that XML names should allow such rules? > My problem could serve as a use case ... > > > -- > Regards, > Mukul Gandhi > Personally I think that's poorly designed XML, it's much easier to search and process if you have consistent names such as folder and file for the elements and use attributes to hold the name and any other information. Joe http://joe.fawcett.name
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|