Re: Reagrding XML file parsing.
Re: Reagrding XML file parsing.
- Subject: Re: Reagrding XML file parsing.
- From: Jim Rankin <email@hidden>
- Date: Wed, 14 Apr 2004 10:49:49 -0400
You can look at the code in my Cocoa framework for XML marshalling:
http://www.homepage.mac.com/jimbokun/Excelsior.html
(or you can just use the framework in your project) Check out the
classes JMRXMLTree and JMRXMLNode to see how to access attributes from
a CFXMLTreeNodeRef/CFXMLTreeRef. Let me know if you have any
questions.
-jimbo
Excelsior! XML Marshaller for Cocoa
http://www.homepage.mac.com/jimbokun/Excelsior.html
On Apr 14, 2004, at 8:38 AM, Manish Pattath wrote:
>
Hi,
>
>
I am parsing a XML file using CFXMLParser. I am able to get the node
>
name. But I am not able to get the values associated with the node.
>
>
This is what I am doing for getting the node value.
>
>
CFXMLTreeRef ssubSubTree = CFTreeGetChildAtIndex(subSubTree, index);
>
>
CFXMLNodeRef ssubNode = CFXMLTreeGetNode(ssubSubTree);
>
>
CFShow(CFXMLNodeGetString(ssubNode));
>
>
cfXML = (CFXMLElementInfo*) CFXMLNodeGetInfoPtr(ssubNode);
>
>
cDict = (*cfXML).attributes;
>
>
But cfXML which is of type CFXMLElementInfo* is null and so is cDict
>
which is of CFDictionaryRef type.
>
>
Can anybody tell me the reason for this behaviour?
>
Is my approach incorrect?
>
>
Thanks.
>
>
with rgds,
>
pmanish
>
>
Yahoo! India Matrimony: Find your partner online.
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.