rick.van.haasen++at++philips.com
Date: 09/10/2004 02:23:30
i can give you an example how i extend the xml file:
<!--------------------------------------------------->
<configuration>
<!-- Headtracker settings -->
<headtracker>
<device>fastrack</device>
</headtracker>
<!-- Next part is for the Performer viewer configuration -->
<!-- Viewer -->
<viewer>
<!-- Viewer configuration comes here -->
</viewer>
</configuration>
<!--------------------------------------------------->
The application code is as follows:
pConfig = pfvXmlNode::parseFile (argv[1]);
pfvXmlNode *pViewer = pConfig->findChild("viewer");
pfvViewer* viewer = new pfvViewer(pViewer);
In other words, pfvViewer accepts only viewer subtree data, unknown
elements
will cause an error.
hope this helps
------------------------------------------------------------------------------------------------
Rick van Haasen Philips Research
Laboratories Eindhoven
Building: WY8-48 Prof. Holstlaan 4
Phone: +31 40 2744357 5656 AA Eindhoven
Fax: +31 40 2744660 The Netherlands
-------------------------------------------------------------------------------------------------
"C.H.PARK" <wawworld++at++cyber.rcast.u-tokyo.ac.jp>
Sent by:
owner-info-performer++at++performer.engr.sgi.com
10-09-2004 10:10
To: <info-performer++at++sgi.com>
cc: (bcc: Rick van Haasen/EHV/RESEARCH/PHILIPS)
Subject: [info-performer] libpfv - XML attribute
Classification:
I'd like to handle attribute in XML node by using libpfv.
To test this, I added some attributes to logo.pfv without programming just
like following:
<logo test="123>
....
</logo>
When I execute this file, pfview is exited before rendering.
But, I can print attribute value and number of attribute in a terminal
window by using pfvXmlNode::getAttr(char* _name) and
pfvXmlNode::getAttr(char* _name).
So, are there anyone who can help me?
-----------------------------------------------------------------------
List Archives, Info, FAQ: http://www.sgi.com/software/performer/
Open Development Project: http://oss.sgi.com/projects/performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
-----------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Fri Sep 10 2004 - 02:26:30 PDT