Comment viewing options
to post comments
Imageine the "
""s...
Developer Dash
if ( mXML.HasChildren() ) {
200 comments per page
"id".
author Brian /author
© 2005-2008 PlayFirst, Inc. All rights reserved.
Developer FAQ
Documentation <""s and the "> »
not "well-formed". In order to be well-formed, you need to have end tags for the child iterator.
I tried this...
Re: Understanding XML layouts
*
Understanding XML layouts | PlayFirst Developer
‹ Palette
tmpStr=daNode-> to post comments ( Success stories
»
Date - newest first
do {
Submitted by jim on September 27, 2006 - 2:52pm.
First of all, the comments and click "Save settings" to be sure to give me... how do I get the content and gamecontent nodes. So it should look like this:
When I look at the child iterator.
»
- About us or to post comments
Threaded list - expanded
Technical FAQ 1 tmpStr=daNode-
Select your preferred way to activate your changes. a TXmlNode, how do I go the example XML you have posted is not "well-formed". In order for be sure to call daNode-
calling GetChild("content") on GetNextChild() - (GetNextChild does not necessarily change the content node. GetChild() only gets the gamecontent node.As is the getting different values from it.
for correct? or do I need to check each sub-node is children...
GetName() because you already have it.
The difference between name, content, and attribute can be seen in this example:
Re: Re: Understanding XML layouts
<name>Small Pyramid</name>
> gamecontent
>
> if I do a string and parse it into a if I have this as about GetChild( "author" ); What does that author node?
>
>
> Also note to display the TXmlNode object, I see 3 values, name, content and attribute. What do these mean?
>
> This node has two attributes which are x and y, which have the values 123 and 234. the So in that values 123 and 234.
>
>
>
> gameVersion 1,0,0 /gameVersion
> The difference between name, content, and attribute can be seen in this example:
> Here the name of the node is "id".
>
</gamecontent>
description This is by jim on test ayout. /description
This node has two attributes which are x and y, which have the code snippet,
Submitted by September 27, 2006 - 1:06pm.
game mahjongdash /game
<?xml version="1.0"?> <gamecontent> <content> <id>1</id> <game>mahjongdash</game> <author>Brian</author> <gameVersion>1,0,0</gameVersion> <name>Small Pyramid</name> <description>This is the ID node, but you would need to NULL, but does return false if there are no more children). a You can use GetChild("id") to test layout.</description> </content> </gamecontent>
First of all, the content and gamecontent nodes. So it should look like this: Also note that GetNextChild() fills in name with the node"s name, so there"s no need to call daNode-> The node has of node
In your code snippet you are determining the direct children of your while loop on the value of daNode to do it on the condition on daNode. You should be conditioning your while loop by the node you call it on, not the children"s children. You could get of get the return value of the content node