Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<![CDATA....

Status
Not open for further replies.

andybeeeeee

Programmer
Dec 9, 2002
17
GB
hi all

i'm trying to create a schema file for an xml file, but i'm having trouble. how do i define an element that has no name and contains only <![CDATA....]]>. here's an example:

Code:
<connect fnname="ConnectUserManager">
<![CDATA[ 

import win32com.client
import whrandom
def ConnectUserManager():
...... blah blah blah.......
]]>
</connect>

can anyone help me to define this?

thanks
 
I'm not an expert at XML schemas, but I do know that you can't have an element that doesn't have a name. The CDATA you're talking about in your example is the value for the element named "CONNECT"

- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
wgcs is correct. You've defined a CDATA section for your connect element. CDATA can only function inside an element -- never by itself.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Just like you did in your first post.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top