Hi Robert, > Doesn't most "well formed XML" contain a declaration? LIke: > <?xml version="1.0" encoding="UTF-8"?>
No. Including the declaration is not a strict rule of well-formness. It's optional, but leaving it out can cause issues when your content requires it. Well-formed XML is just about the base minimum rules. But, the more things you add to your XML, the more rules you have to add on top of the base. > However, if the file has a declaration, I get this error: > > An error occurred while parsing the XML. > No processing instruction starts with 'xml' > > So, I have had to modify, to manually remove the declaration, > which seems like I shouldn't have to do. And does this mean, > that <@dom> assumes only one type of text encoding, since it > ignores the declaration? > > So I have to read in xml like this: > > <@assign local$myxml "<@include file='/dirpath/filename'>"> > <@assign local$myDom <@replace str='<@var local$myxml > type=text>' findstr='<\?.+\?>' replacestr='' type=regex> > > Am I missing something? > > So, is this a bug? Yes, this is very strange. This never happened in earlier versions. > And does this mean that any xml files that > are NOT encoded ISO-8859-1 will be treated as such any way, > so we will have encoding problems? Cascading issue from above. > Enough for tonight, time for bed. > > -- > > Robert Garcia > President - BigHead Technology > VP Application Development - eventpix.com > 13653 West Park Dr > Magalia, Ca 95954 > ph: 530.645.4040 x222 fax: 530.645.4040 > [EMAIL PROTECTED] - [EMAIL PROTECTED] > http://bighead.net/ - http://eventpix.com/ > > On Sep 4, 2005, at 8:18 PM, Customer Support wrote: > > > The easiest way to read in (well formed) XML from a > file is this: > > > > > <@ASSIGN request$MyDOM '<@DOM VALUE="<@INCLUDE > "/directorypath/filename">'> > > > > ______________________________________________________________ > __________ > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf > ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
