Hi folks,

I'm just trying to break down a large XML document into several
smaller pieces using <!ENTITY...>. For some reason CF 7's XML
engine doesn't like the way I'm doing it:

a.xml:

<!DOCTYPE myDocype [
        <!ENTITY configuration SYSTEM "b.xml">
]>

<juhu>
&configuration;
</juhu>

b.xml:

<b>
<name>abc</name>
</b>


a.xml and b.xml are in the same folder.

Given the concept of entities, that should work (and it actually
does work with IE's built-in XML parser). If I read a.xml by using 
CFFILE and do an XMLParse(), it doesn't even dump the result of
XMLParse, only display is "unkown object type".

It actually makes a huge difference, when I use a full URL
in my ENTITY tag:

<!ENTITY configuration SYSTEM "http://server/path/to/b.xml";>

or even

<!ENTITY configuration SYSTEM "c:\path\to\b.xml">

works fine and a dump of the XML object after XMLParse delivers
exactly what I want.

The issue is that I need to be able to just provide the
filename, there's no way of puttin a complete path.

I'm just wondering if that is some issue with particularly
the XML parser in CF? Any ideas?

Cheers
Kai





__________________________________________________
Kai Koenig

Digital solutions architect
Macromedia Certified Master Instructor (CF, Flex)
Macromedia Certified Professional (CF, Flash)

ZeroOne (NZ) Limited
Level 4, United Building, 
107 Customhouse Quay
P.O Box 9918, Marion Square
Wellington, New Zealand

Office: +64   4 471 4448
Mobile: +64  27 567 1007 
Fax:    +64   4 499 0019
e-mail: [EMAIL PROTECTED]
URL:    www.zeroone.co.nz
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~----------~----~----~----~------~----~------~--~---

Reply via email to