all groups > flash data integration > may 2007 >
You're in the

flash data integration

group:

XML Code Help


XML Code Help CyberSam
5/30/2007 6:31:18 PM
flash data integration:
Hey All,

Im working towards a easier way of updating my menubar componet. I'm having it
load from an XML file, part of the code works well, the other part is hosed up
somewhere and thats where I need help I'm not sure where the issue is IM hoping
someone can help me out. below is my code.

The thing that has me baffeld is the first two menus work. ( meanign
everythign shows up in the menu and the links work) the engineering and on do
not. barring form a spelling mistake.... can anyone see any obvious problems?

<jpi label="Why JPI">
<jpimn label="What is JPI" url="http://jsdl.jacobs.com/jpi/home/home001.swf"
icon="presentation"/>
<jpimn label="Getting Started"
url="http://jsdl.jacobs.com/jpi/home/GettingStartedDemoEx.swf"
icon="mov"/></jpi>
<pm label="JPI and My Project">
<pmmnu label="Project Managers">
<link label="PM - JPI Overview" url="home/home002.swf" icon="mov" />
<link label="PM-JPI Tasks" url="http://jsdl.jacobs.com/jpi/proj/pr001.swf"
icon="mov" />
<link type="separator" />
<link label="JPI Card Overview"
url="http://jsdl.jacobs.com/jpi/eng/CardOverviewDemoEx.swf" icon="mov" />
<link label="Create a Card from the Beginning" url
="http://jsdl.jacobs.com/jpi/eng/CardBeginning2.swf" icon="mov" />
<link label="Create a Card from an Exisiting Card" url
="http://jsdl.jacobs.com/jpi/eng/CardSelectedDemoEx.swf" icon="mov" />
<link type="separator" />
<link label="Editing Cards"
url="http://jsdl.jacobs.com/jpi/eng/EditingCardDemoEx.swf" icon="mov" />
<link label="My Documents"
url="http://jsdl.jacobs.com/jpi/eng/MyDocDemoEx.swf" icon="mov" />
<link label="Checking In Your Documents"
url="http://jsdl.jacobs.com/jpi/eng/CheckInDemoEx.swf" icon="mov" />
<link label="The JPI Approval Process"
url="http://jsdl.jacobs.com/jpi/eng/ApprovalProcessDemoEx.swf" icon="mov" />
</pmmnu>
<pmmnu label="The Engineering Workflow"
url="http://jsdl.jacobs.com/jpi/proj/pr003.swf" icon="presentation"/>
</pm>
<eng label="Engineering Module">
<engmnu label ="Navigator Pane" url="eng/NavPaneDemoEx.swf" icon="mov" />
<engmnu label ="Action Bar"
url="http://jsdl.jacobs.com/jpi/eng/ActionBarDemoEx.swf" icon="mov" />
<engmnu label ="Engineering Symbols" url="whatever.com" icon="mov" />
<engmnu type="separator" />
<engmnu label="JPI Document Cards">
<link label="JPI Card Overview"
url="http://jsdl.jacobs.com/jpi/eng/CardOverviewDemoEx.swf" icon="mov" />
<link type="separator" />
<link label="Creating a Card"
url="http://jsdl.jacobs.com/jpi/eng/CardBeginning2.swf" icon="mov" />
<link label="Creating a Card Simulation" url="whatever.com"
icon="http://jsdl.jacobs.com/jpi/eng/CardBeginingImportSimEx.swf" icon="mov" />
<link type="separator" />
<link label="Creating a Card with Another Card Selected"
url="http://jsdl.jacobs.com/jpi/eng/CardSelectedDemoEx.swf" icon="mov" />
<link label="Creating a Card with Another Card Selected Simulation"
url="http://jsdl.jacobs.com/jpi/eng/CardSelectedSimEx.swf" icon="mov" />
<link type="separator" />
<link label="Creating a Card with Duplicate Option"
url="http://jsdl.jacobs.com/jpi/eng/duplicatedemoEx.swf" icon="mov" />
<link label="Creating a Card with Duplicate Option Simulation"
url="http://jsdl.jacobs.com/jpi/eng/DuplicateSimEx.swf" icon="mov" />
</engmnu>
<engmnu type="separator" />
<engmnu label ="Editing a Card"
url="http://jsdl.jacobs.com/jpi/eng/EditingCardDemoEx.swf" icon="mov" />
<engmnu label ="My Documents"
url="http://jsdl.jacobs.com/jpi/eng/MyDocDemoEx.swf" icon="mov" />
<engmnu label ="Document Check In"
url="http://jsdl.jacobs.com/jpi/eng/CheckInDemoEx.swf" icon="mov" />
<engmnu label ="Attaching Xrefs"
url="http://jsdl.jacobs.com/jpi/eng/XrefDemoEx.swf" icon="mov" />
<engmnu type="separator" />
<engmnu label ="Comments/Markups"
url="http://jsdl.jacobs.com/jpi/eng/CmmtDemoEx.swf" icon="mov" />
<engmnu label="Notifications">
<link label="Preparing a Notification"
url="http://jsdl.jacobs.com/jpi/Notif/NotificationDemoEx.swf" icon="mov" />
<link label="Preparing a Notification Simulation"
url="http://jsdl.jacobs.com/jpi/Notif/NotificationSimEx.swf" icon="mov" />
<link label="Preparing JE Transmittal Notification"
url="http://jsdl.jacobs.com/jpi/Notif/NotificationTransmittalDemoEx.swf"
icon="mov" />
<link label="Preparing JE Transmittal Notification Simulation"
url="http://jsdl.jacobs.com/jpi/Notif/NotificationTransmittalSimEx.swf"
icon="mov" />
</engmnu>

</eng>
<ven label="Vendor Module">
<venmn label="In Development" icon="indevelopment" />
</ven>
<cor label="Correspondence Module">
<cormnu label="In Development" icon="indevelopment" />
</cor>
<eml label="Email Module">
<emlmnu label="Stuff" icon="indevelopment" />
</eml>
<help label="Help">
<helpmnu label="How to JSDL"
url="http://jsdl.jacobs.com/jpi/feedback/train01.swf" icon="mov" />
<helpmnu label="Feedback" icon="input" />
<helpmnu label="Contact Us" icon="email2" />
<helpmnu label ="About JSDL" icon="help" />
</help>
Re: XML Code Help ryder1212
5/30/2007 9:04:43 PM
Look at the line below:

<link label="Creating a Card Simulation" url="whatever.com"
icon="http://jsdl.jacobs.com/jpi/eng/CardBeginingImportSimEx.swf" icon="mov" />

You can't have duplicate attributes in the same Node. ( "icon" and "icon")
According to the other Nodes, it looks like you meant to put:

<link label="Creating a Card Simulation"
url="http://jsdl.jacobs.com/jpi/eng/CardBeginingImportSimEx.swf" icon="mov" />

You can always open the the .xml file in IE and it "sometimes" it gets you
closer to the problem. Good Luck

Re: XML Code Help CyberSam
5/30/2007 10:40:55 PM
thanks - Cant believe I missed it. ( I guess i can now )

Re: XML Code Help CyberSam
5/30/2007 11:30:45 PM
Re: XML Code Help ryder1212
5/30/2007 11:52:33 PM
Re: XML Code Help CyberSam
6/2/2007 12:00:00 AM
Yep .. I may need to study more about XML. Or Im totally missing something
easy. I believe what the error message is saying is that.. I need to
encapsulate all of my top level menus inside a tag such as < menu > place all
my content in here for menus < /menu > I tried that and it works fine for a
single button drop down menu, but I really want this to work with a menubar
component.

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then
click the Refresh button, or try again later.



--------------------------------------------------------------------------------

Only one top level element is allowed in an XML document. Error processing
resource 'file:///C:/Projects/jpimenu.xml'. Lin...

<pm label="JPI and My Project">
-^
AddThis Social Bookmark Button