XML parser -- element data?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bcox
Forum Newbie
Posts: 5
Joined: Fri Jun 25, 2004 12:05 pm
Location: Mission, KS

XML parser -- element data?

Post by bcox »

When you define a function as an element handler for an XML parser (see xml_set_element_handler), how is the character data passed to the handler function? Or is it even passed to the handler function? Three arguments - parser ref, name of element, and attributes, but is the CDATA an attribute or no?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

why not try it out? :roll:
Post Reply