[xsd-users] Re: Newbie question -- confused on simple point --
how to get the value of an item from my parsed document?
cook47 at llnl.gov
Wed Feb 29 14:17:00 EST 2012
Good to know it's documented somewhere. As a newbie, I would have appreciated if this information was somewhat easier to find. Perhaps now that I have asked it, someone else will be able to find it in the list. I found the list archives to be awkward to search and use as well. Not complaining, just giving feedback from my perspective. :-)
I looked in the section you pointed to, section 4.1 and I don't see a single asterisk used. In section 4.2, "Accessing the Object Model," which I actually read before posting my question, there is an asterisk, but I don't think it really answers my question. From reading it, the simple solution I give below is not obvious.
Anyhow, now I know. Hopefully someone will have an answer to the namespace problem I brought up in my other post. I don't see that that is the case yet. Should I repost it?
On Feb 29, 2012, at 6:29 AM, Boris Kolpackov wrote:
> Hi Rich,
> Cook, Rich <cook47 at llnl.gov> writes:
>> Answered my own question.
>> The answer is
>> valuestr = *frame.imuLatitude();
> BTW, this is covered in Chapter 4, "Working with Object Models" in the
> C++/Tree Mapping Getting Started Guide:
> Specifically, Section 4.1, "Attribute and Element Cardinalities" talks
> about extracting value from optional elements and attributes.
✇ Lawrence Livermore National Laboratory
Bldg-453 Rm-4024, Mail Stop L-557
7000 East Avenue, Livermore, CA, 94550, USA
☎ (office) (925) 423-9605
☎ (fax) (925) 423-6961
Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)
More information about the xsd-users