Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Mon, 21 Apr 2008 19:48:01 -0700,    group: microsoft.public.xml        back       


Need information abount XML file   
Hello.

I'm trying to define what i have in an xml file shown below.

I can see that it starts out with a root element named 
"TripExportDataObject" with an attribute of a URI.

Inside that we have Element:Trip and child elements including an 
Element:TripData.

I don't understand what is inside TripData.  It seems to have attributes, 
but the attributes look like they are grouped and each group is inside a set 
of angle brackets.  This goes on until the closing tag for the TripData 
element.

Is my description of this xml correct?

Can anybody tell me what the TripData element consists of in XML talk?

Any help would be gratefully appreciated.

Thanks,
Tony


 <TripExportDataObject xmlns="http://tempuri.org/TripExportDataObject.xsd">
 <Trip>
  <TripID>39358</TripID> 
  <CurrentRevisionNumber>1</CurrentRevisionNumber> 
  <IsDispatch>false</IsDispatch> 
  <IsActive>false</IsActive> 
  <IsComplete>true</IsComplete> 
  <IsArchived>true</IsArchived> 
  <XVIN>67112663</XVIN> 
  <OrganizationID>1217</OrganizationID> 
  <UserDefinedRouteID>0</UserDefinedRouteID> 
  <StartDate>2008-04-19T04:00:00-05:00</StartDate> 
  <EndDate>2008-04-20T04:00:00-05:00</EndDate> 
  <LastMessageDate>2008-04-20T04:14:49.967-05:00</LastMessageDate> 
  <TripType>OperationProfile</TripType> 
  <TimeVariance>0</TimeVariance> 
  <DateLastModified>2008-04-20T04:14:49.96-05:00</DateLastModified> 
  <TripData><Trip InternalElementID="1" UniqueID="1" TripID="39358" 
TripType="OperationProfile" Audited="False" UnknownDriver="False" 
OrganizationID="1217"> <Actual InternalElementID="2" UniqueID="2" 
UserDefinedRouteID="0" XVIN="67112663" BegOdo="0" EndOdo="0" BegFuel="0" 
EndFuel="0" BegDateTime="2008-04-19T04:00:00" 
EndDateTime="2008-04-20T04:00:00" BegLatitude="0" BegLongitude="0" 
EndLatitude="0" EndLongitude="0" StartingRoadwayStatus="Taxable"> 
<OpProfileSession InternalElementID="3" UniqueID="3" 
StartTime="2008-04-19T04:00:00" EndTime="2008-04-20T04:00:00" 
StopDurationSeconds="86439" StopDistanceMiles="0" StopFuelQtyGallons="0" 
StopIdleDurationSeconds="0" StopIdleFuelQtyGallons="0" 
StopMoveDurationSeconds="0" DelayCount="0" DelayDurationSeconds="0" 
DelayDistanceFeet="0" DelayFuelQtyGallons="0" SpeedingDistanceMiles="0" 
SpeedingDurationSeconds="0" PanicCount="0" StateBordersCrossedCount="0" 
SessionDurationSeconds="86439" StopCount="0" StoppedAtStart="True" 
Mode="Unknown"> <SpeedBracket InternalElementID="4" UniqueID="4" 
HighSpeedMPH="5" DurationSeconds="0" DistanceMiles="0" FuelQtyGallons="0" 
CoastDistanceMiles="0" CruiseDurationSeconds="0" CruiseDistanceMiles="0" 
CruiseFuelQtyGallons="0" BrakeCount="0" LowTorqueDurationSeconds="0" 
HighTorqueDurationSeconds="0" BracketNumber="0" /> <SpeedBracket 
InternalElementID="5" UniqueID="5" HighSpeedMPH="35" DurationSeconds="0" 
DistanceMiles="0" FuelQtyGallons="0" CoastDistanceMiles="0" 
CruiseDurationSeconds="0" CruiseDistanceMiles="0" CruiseFuelQtyGallons="0" 
BrakeCount="0" LowTorqueDurationSeconds="0" HighTorqueDurationSeconds="0" 
BracketNumber="1" /> <SpeedBracket InternalElementID="6" UniqueID="6" 
HighSpeedMPH="48" DurationSeconds="0" DistanceMiles="0" FuelQtyGallons="0" 
CoastDistanceMiles="0" CruiseDurationSeconds="0" CruiseDistanceMiles="0" 
CruiseFuelQtyGallons="0" BrakeCount="0" LowTorqueDurationSeconds="0" 
HighTorqueDurationSeconds="0" BracketNumber="2" /> <SpeedBracket 
InternalElementID="7" UniqueID="7" HighSpeedMPH="53" DurationSeconds="0" 
DistanceMiles="0" FuelQtyGallons="0" CoastDistanceMiles="0" 
CruiseDurationSeconds="0" CruiseDistanceMiles="0" CruiseFuelQtyGallons="0" 
BrakeCount="0" LowTorqueDurationSeconds="0" HighTorqueDurationSeconds="0" 
BracketNumber="3" /> <SpeedBracket InternalElementID="8" UniqueID="8" 
HighSpeedMPH="58" DurationSeconds="0" DistanceMiles="0" FuelQtyGallons="0" 
CoastDistanceMiles="0" CruiseDurationSeconds="0" CruiseDistanceMiles="0" 
CruiseFuelQtyGallons="0" BrakeCount="0" LowTorqueDurationSeconds="0" 
HighTorqueDurationSeconds="0" BracketNumber="4" /> <SpeedBracket 
InternalElementID="9" UniqueID="9" HighSpeedMPH="63" DurationSeconds="0" 
DistanceMiles="0" FuelQtyGallons="0" CoastDistanceMiles="0" 
CruiseDurationSeconds="0" CruiseDistanceMiles="0" CruiseFuelQtyGallons="0" 
BrakeCount="0" LowTorqueDurationSeconds="0" HighTorqueDurationSeconds="0" 
BracketNumber="5" /> <SpeedBracket InternalElementID="10" UniqueID="10" 
HighSpeedMPH="68" DurationSeconds="0" DistanceMiles="0" FuelQtyGallons="0" 
CoastDistanceMiles="0" CruiseDurationSeconds="0" CruiseDistanceMiles="0" 
CruiseFuelQtyGallons="0" BrakeCount="0" LowTorqueDurationSeconds="0" 
HighTorqueDurationSeconds="0" BracketNumber="6" /> <SpeedBracket 
InternalElementID="11" UniqueID="11" HighSpeedMPH="73" DurationSeconds="0" 
DistanceMiles="0" FuelQtyGallons="0" CoastDistanceMiles="0" 
CruiseDurationSeconds="0" CruiseDistanceMiles="0" CruiseFuelQtyGallons="0" 
BrakeCount="0" LowTorqueDurationSeconds="0" HighTorqueDurationSeconds="0" 
BracketNumber="7" /> <SpeedBracket InternalElementID="12" UniqueID="12" 
HighSpeedMPH="78" DurationSeconds="0" DistanceMiles="0" FuelQtyGallons="0" 
CoastDistanceMiles="0" CruiseDurationSeconds="0" CruiseDistanceMiles="0" 
CruiseFuelQtyGallons="0" BrakeCount="0" LowTorqueDurationSeconds="0" 
HighTorqueDurationSeconds="0" BracketNumber="8" /> <SpeedBracket 
InternalElementID="13" UniqueID="13" HighSpeedMPH="99" DurationSeconds="0" 
DistanceMiles="0" FuelQtyGallons="0" CoastDistanceMiles="0" 
CruiseDurationSeconds="0" CruiseDistanceMiles="0" CruiseFuelQtyGallons="0" 
BrakeCount="0" LowTorqueDurationSeconds="0" HighTorqueDurationSeconds="0" 
BracketNumber="9" /> </OpProfileSession> </Actual> </Trip></TripData> 
  </Trip>
 <Trip>
  <TripID>39359</TripID> 
  <CurrentRevisionNumber>1</CurrentRevisionNumber> 
  <IsDispatch>false</IsDispatch> 
  <IsActive>false</IsActive> 
  <IsComplete>true</IsComplete> 
  <IsArchived>true</IsArchived> 
  <XVIN>67112663</XVIN> 
  <OrganizationID>1217</OrganizationID> 
  <UserDefinedRouteID>0000000000</UserDefinedRouteID> 
  <StartDate>2008-04-19T04:00:00-05:00</StartDate> 
  <EndDate>2008-04-20T04:00:00-05:00</EndDate> 
  <LastMessageDate>2008-04-20T04:15:55.513-05:00</LastMessageDate> 
  <TripType>Shop</TripType> 
  <TimeVariance>0</TimeVariance> 
  <DateLastModified>2008-04-20T04:15:55.477-05:00</DateLastModified> 
  <TripData><Trip InternalElementID="1" UniqueID="1" TripID="39359" 
TripType="Shop" Audited="False" UnknownDriver="False" OrganizationID="1217"> 
<Actual InternalElementID="2" UniqueID="2" UserDefinedRouteID="0000000000" 
XVIN="67112663" FinalEventFileSequenceNumber="221" StartingStateID="34" 
BegOdo="133185.3" EndOdo="133185.3" BegFuel="25965.875" EndFuel="25965.875" 
BegDateTime="2008-04-19T04:00:00" EndDateTime="2008-04-20T04:00:00" 
BegLatitude="40901800" BegLongitude="-74170420" EndLatitude="40901800" 
EndLongitude="-74170420" StartingRoadwayStatus="Taxable"> <Stop 
InternalElementID="3" UniqueID="3" BegOdo="133185.3" EndOdo="133185.3" 
BegFuel="25965.875" EndFuel="25965.875" BegDateTime="2008-04-19T04:00:00" 
EndDateTime="2008-04-20T04:00:00" BegLatitude="40901800" 
BegLongitude="-74170420" EndLatitude="40901800" EndLongitude="-74170420" 
HasBegin="False" HasEnd="False" DriverInCharge="True" 
DriverInChargeXDriverID="-1" /> <EventFiles InternalElementID="4" 
UniqueID="4" CloseReason="NewDay" StartedMoving="False" EndedMoving="False" 
StartedStateID="34" EndedStateID="34" SequenceNumber="221" BegOdo="133185.3" 
EndOdo="133185.3" BegFuel="25965.875" EndFuel="25965.875" 
BegDateTime="2008-04-19T04:00:00" EndDateTime="2008-04-20T04:00:00" 
BegLatitude="40901800" BegLongitude="-74170420" EndLatitude="40901800" 
EndLongitude="-74170420"> <DCSEventFileClose InternalElementID="5" 
UniqueID="5" CloseOdo="133185.3" CloseHubo="132410.3" /> </EventFiles> 
</Actual> </Trip></TripData> 
  </Trip>
  </TripExportDataObject>
date: Mon, 21 Apr 2008 19:48:01 -0700   author:   Tony Girgenti tony(nospam)@lakesideos.com

Re: Need information abount XML file   
Tony Girgenti wrote:

> I can see that it starts out with a root element named 
> "TripExportDataObject" with an attribute of a URI.

Not quite, the root element named 'TripExportDataObject' has a default 
namespace declaration that applies to the root element and all its 
descendants so these elements are in that namespace.

> Inside that we have Element:Trip and child elements including an 
> Element:TripData.
> 
> I don't understand what is inside TripData.  It seems to have attributes, 
> but the attributes look like they are grouped and each group is inside a set 
> of angle brackets.  This goes on until the closing tag for the TripData 
> element.

The first 'TripData' element has a child element 'Trip' that has several 
attributes and that has a child element named 'Actual' that too has 
several attributes and that has a child element 'OpProfileSession' that 
too has several attributes and that has several child elements 
'SpeedBracket' which again have several attributes.

-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/
date: Tue, 22 Apr 2008 13:20:04 +0200   author:   Martin Honnen

Re: Need information abount XML file   
Hello Martin.

Is there a name for that type of structure?  How did you figure out that 
Actual is a child element of Trip?  They look like they are at the same level 
in the structure.  They are both enclosed in angle brackets.

When i display this file in Internet Explorer, it displays TripData as one 
big element.

Thanks,
Tony


"Martin Honnen" wrote:

> Tony Girgenti wrote:
> 
> > I can see that it starts out with a root element named 
> > "TripExportDataObject" with an attribute of a URI.
> 
> Not quite, the root element named 'TripExportDataObject' has a default 
> namespace declaration that applies to the root element and all its 
> descendants so these elements are in that namespace.
> 
> > Inside that we have Element:Trip and child elements including an 
> > Element:TripData.
> > 
> > I don't understand what is inside TripData.  It seems to have attributes, 
> > but the attributes look like they are grouped and each group is inside a set 
> > of angle brackets.  This goes on until the closing tag for the TripData 
> > element.
> 
> The first 'TripData' element has a child element 'Trip' that has several 
> attributes and that has a child element named 'Actual' that too has 
> several attributes and that has a child element 'OpProfileSession' that 
> too has several attributes and that has several child elements 
> 'SpeedBracket' which again have several attributes.
> 
> -- 
> 
> 	Martin Honnen --- MVP XML
> 	http://JavaScript.FAQTs.com/
>
date: Tue, 22 Apr 2008 06:21:00 -0700   author:   Tony Girgenti tony(nospam)@lakesideos.com

Re: Need information abount XML file   
Tony Girgenti wrote:

> Is there a name for that type of structure?  

There are various tree models for XML, one is the DOM tree model, one is 
the XPath tree model. But those apply in general and are not specific to 
the XML you posted.

> How did you figure out that 
> Actual is a child element of Trip?  

I copied the markup you posted into a Visual Studio XML editor window 
which adds indendation even for poorly formatted XML.

-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/
date: Tue, 22 Apr 2008 15:37:14 +0200   author:   Martin Honnen

Re: Need information abount XML file   
Hello Martin.

> There are various tree models for XML, one is the DOM tree model, one is 
> the XPath tree model. But those apply in general and are not specific to 
> the XML you posted.<

I guess i am looking for specific information about what's in this xml file. 
 I just don't know how to ask what i need to know.  I'm trying to understand 
it in xml terms.  I read a lot about xml and i understand what elements, 
attributes, parent and children are.  I'm still not sure of what i have in 
TripData.

> I copied the markup you posted into a Visual Studio XML editor window 
> which adds indendation even for poorly formatted XML.<

I tried copying it into an xml edit file in VS.  Is my xml file poorly 
formatted?
I still can't see how you determined that Actual is a child of Trip.  They 
look the same to me except for the element name. The TripData element showed 
as below.

Thanks,
Tony

<TripData>
  <Trip InternalElementID="1" UniqueID="1" TripID="38283" TripType="Shop" 
Audited="False" UnknownDriver="False" OrganizationID="1217">
  <Actual InternalElementID="2" UniqueID="2" UserDefinedRouteID="0000000000" 
XVIN="67112663" StartingStateID="34" XAMTripToken="1205891621554" 
ContainsFirstEventGroup="True" BegOdo="127613.9" EndOdo="127613.9" 
BegFuel="24909.25" EndFuel="24909.25" BegDateTime="2008-03-20T01:53:00" 
EndDateTime="2008-03-20T05:00:00" BegLatitude="40901900" 
BegLongitude="-74170230" EndLatitude="40901900" EndLongitude="-74170230" 
StartingRoadwayStatus="Taxable">
  <Stop InternalElementID="3" UniqueID="3" BegOdo="127613.9" 
EndOdo="127613.9" BegFuel="24909.25" EndFuel="24909.25" 
BegDateTime="2008-03-20T01:53:00" EndDateTime="2008-03-20T05:00:00" 
BegLatitude="40901900" BegLongitude="-74170230" EndLatitude="40901900" 
EndLongitude="-74170230" HasBegin="True" HasEnd="False" DriverInCharge="True" 
DriverInChargeXDriverID="-1" />
  <EventFiles InternalElementID="4" UniqueID="4" CloseReason="NewDay" 
StartedMoving="False" EndedMoving="False" StartedStateID="34" 
EndedStateID="34" SequenceNumber="151" BegOdo="127613.9" EndOdo="127613.9" 
BegFuel="24909.25" EndFuel="24909.25" BegDateTime="2008-03-20T01:53:00" 
EndDateTime="2008-03-20T05:00:00" BegLatitude="40901900" 
BegLongitude="-74170230" EndLatitude="40901900" EndLongitude="-74170230">
  <DCSEventFileClose InternalElementID="5" UniqueID="5" CloseOdo="127613.9" 
CloseHubo="126838.9" />
  </EventFiles>
  </Actual>
  </Trip>
</TripData>


"Martin Honnen" wrote:

> Tony Girgenti wrote:
> 
> > Is there a name for that type of structure?  
> 
> There are various tree models for XML, one is the DOM tree model, one is 
> the XPath tree model. But those apply in general and are not specific to 
> the XML you posted.
> 
> > How did you figure out that 
> > Actual is a child element of Trip?  
> 
> I copied the markup you posted into a Visual Studio XML editor window 
> which adds indendation even for poorly formatted XML.
> 
> -- 
> 
> 	Martin Honnen --- MVP XML
> 	http://JavaScript.FAQTs.com/
>
date: Tue, 22 Apr 2008 08:39:03 -0700   author:   Tony Girgenti tony(nospam)@lakesideos.com

Re: Need information abount XML file   
Tony Girgenti wrote:

> I still can't see how you determined that Actual is a child of Trip.  They 
> look the same to me except for the element name. The TripData element showed 
> as below.

Well anything between the 'Trip' start and end tag is a child or 
descendant of 'Trip' so if you have
   <Trip>
     <Actual>
       <Stop></Stop>
     </Actual>
   </Trip>
then Actual is a child of Tip and Stop is a child of Actual and a 
descendant of Trip.





-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/
date: Tue, 22 Apr 2008 17:48:37 +0200   author:   Martin Honnen

Re: Need information abount XML file   
Hello Martin.

> Well anything between the 'Trip' start and end tag is a child or 
> descendant of 'Trip' so if you have<

I'm sorry, but the only opening and closing items i see inside of TripData 
are opening and closing angle brackets.  I see them around Trip, Actual, Stop 
has a "/>" and that is part of what is confusing me.  Why does Stop have a 
closing "/>", yet Actual has a single ">"?

Thanks,
Tony


"Martin Honnen" wrote:

> Tony Girgenti wrote:
> 
> > I still can't see how you determined that Actual is a child of Trip.  They 
> > look the same to me except for the element name. The TripData element showed 
> > as below.
> 
> Well anything between the 'Trip' start and end tag is a child or 
> descendant of 'Trip' so if you have
>    <Trip>
>      <Actual>
>        <Stop></Stop>
>      </Actual>
>    </Trip>
> then Actual is a child of Tip and Stop is a child of Actual and a 
> descendant of Trip.
> 
> 
> 
> 
> 
> -- 
> 
> 	Martin Honnen --- MVP XML
> 	http://JavaScript.FAQTs.com/
>
date: Tue, 22 Apr 2008 09:28:01 -0700   author:   Tony Girgenti tony(nospam)@lakesideos.com

Re: Need information abount XML file   
Tony Girgenti wrote:

> I'm sorry, but the only opening and closing items i see inside of TripData 
> are opening and closing angle brackets.  I see them around Trip, Actual, Stop 
> has a "/>" and that is part of what is confusing me.  Why does Stop have a 
> closing "/>", yet Actual has a single ">"?

If an element is empty (meaning it has no children at all) then you mark 
it up as
   <foo/>
or
   <foo />
or
   <foo></foo>
See http://www.w3.org/TR/REC-xml/#sec-starttags.

-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/
date: Tue, 22 Apr 2008 18:36:15 +0200   author:   Martin Honnen

Re: Need information abount XML file   
Tony Girgenti wrote:
> Martin Honnen wrote:
>> I copied the markup you posted into a Visual Studio XML editor window 
>> which adds indendation even for poorly formatted XML.<
> 
> I tried copying it into an xml edit file in VS.  Is my xml file poorly 
> formatted?

It's not formatted for human reading. Not that is needs to be, unless
you want humans to read it. But it's just a convenient way to do it:
it's common to indent the structure so that you can see what element
types are nested inside others. Any decent XML editor will do this for
you. Never use a non-XML editor to open an XML document.

> I still can't see how you determined that Actual is a child of Trip.  They 
> look the same to me except for the element name. 

I've copied a simplified version of your document here, indented to show
the nesting (I've omitted the second instance of the second-level Trip
element, and all the reoccurrences of SpeedBracket to keep it sort).

You can immediately see from the indented nesting that Actual is
*inside* <Trip>...</Trip> and that Actual itself also has a child
element, OpProfileSession, which in turn has multiple SpeedBracket elements.

<TripExportDataObject xmlns="http://tempuri.org/TripExportDataObject.xsd">
  <Trip>
    <TripID>39358</TripID>
    <CurrentRevisionNumber>1</CurrentRevisionNumber>
    <IsDispatch>false</IsDispatch>
    <IsActive>false</IsActive>
    <IsComplete>true</IsComplete>
    <IsArchived>true</IsArchived>
    <XVIN>67112663</XVIN>
    <OrganizationID>1217</OrganizationID>
    <UserDefinedRouteID>0</UserDefinedRouteID>
    <StartDate>2008-04-19T04:00:00-05:00</StartDate>
    <EndDate>2008-04-20T04:00:00-05:00</EndDate>
    <LastMessageDate>2008-04-20T04:14:49.967-05:00</LastMessageDate>
    <TripType>OperationProfile</TripType>
    <TimeVariance>0</TimeVariance>
    <DateLastModified>2008-04-20T04:14:49.96-05:00</DateLastModified>
    <TripData>
      <Trip InternalElementID="1" UniqueID="1" TripID="39358"
	TripType="OperationProfile" Audited="False"
	UnknownDriver="False" OrganizationID="1217">
	<Actual InternalElementID="2" UniqueID="2"
	  UserDefinedRouteID="0" XVIN="67112663" BegOdo="0" EndOdo="0"
	  BegFuel="0" EndFuel="0" BegDateTime="2008-04-19T04:00:00"
	  EndDateTime="2008-04-20T04:00:00" BegLatitude="0"
	  BegLongitude="0" EndLatitude="0" EndLongitude="0"
	  StartingRoadwayStatus="Taxable">
	  <OpProfileSession InternalElementID="3" UniqueID="3"
	    StartTime="2008-04-19T04:00:00" EndTime="2008-04-20T04:00:00"
	    StopDurationSeconds="86439" StopDistanceMiles="0"
	    StopFuelQtyGallons="0" StopIdleDurationSeconds="0"
	    StopIdleFuelQtyGallons="0" StopMoveDurationSeconds="0"
	    DelayCount="0" DelayDurationSeconds="0" DelayDistanceFeet="0"
	    DelayFuelQtyGallons="0" SpeedingDistanceMiles="0"
	    SpeedingDurationSeconds="0" PanicCount="0"
	    StateBordersCrossedCount="0" SessionDurationSeconds="86439"
	    StopCount="0" StoppedAtStart="True" Mode="Unknown">
	    <SpeedBracket InternalElementID="4" UniqueID="4"
	      HighSpeedMPH="5" DurationSeconds="0" DistanceMiles="0"
	      FuelQtyGallons="0" CoastDistanceMiles="0"
	      CruiseDurationSeconds="0" CruiseDistanceMiles="0"
	      CruiseFuelQtyGallons="0" BrakeCount="0"
	      LowTorqueDurationSeconds="0" HighTorqueDurationSeconds="0"
	      BracketNumber="0" />
	    <!-- more SpeedBracket elements go in here -->
	  </OpProfileSession>
	</Actual>
      </Trip>
    </TripData>
  </Trip>
</TripExportDataObject>

///Peter
-- 
XML FAQ: http://xml.silmaril.ie/
date: Wed, 23 Apr 2008 01:07:36 +0100   author:   Peter Flynn

Re: Need information abount XML file   
Hello Peter.

I apologize for not seeing the end tags of </OpProfileSession>, </Actual> 
and </Trip> inside of TripData.  It looks a lot clearer now.  Is this how my 
xml file is structured?

<TripExportDataObject>
   <Trip>
       <TripID>
       <CurrentRevisionNumber>
       <IsDispatch>
       <IsActive>
       <IsComplete>
       <IsArchived>
       <XVIN>
       <OrganizationID>
       <UserDefinedRouteID>
       <StartDate>
       <EndDate>
       <LastMessageDate>
       <TripType>
       <TimeVariance>
       <DateLastModified>
       <TripData>
           <Trip>
               <Actual>
                   <OpProfileSession>
                       <SpeedBracket>
                       </SpeedBracket>
                   </OpProfileSession>
               </Actual>
           </Trip>
        </TripData>
    </Trip>
</TripExportDataObject>

There are two <Trip> elements.  One inside <TripExportDataObject> which has 
a child of <TripData> which in turn has a <Trip> element as child.

I think what i don't understand, is why Internet Explorer does not display 
the elements in TripData the same way that it displays the elements(TripID, 
CurrentRevisionNumber,IsDispatch, etc.) in the<TripExportDataObject>/<Trip> 
elements.

Thanks,
Tony


"Peter Flynn" wrote:

> Tony Girgenti wrote:
> > Martin Honnen wrote:
> >> I copied the markup you posted into a Visual Studio XML editor window 
> >> which adds indendation even for poorly formatted XML.<
> > 
> > I tried copying it into an xml edit file in VS.  Is my xml file poorly 
> > formatted?
> 
> It's not formatted for human reading. Not that is needs to be, unless
> you want humans to read it. But it's just a convenient way to do it:
> it's common to indent the structure so that you can see what element
> types are nested inside others. Any decent XML editor will do this for
> you. Never use a non-XML editor to open an XML document.
> 
> > I still can't see how you determined that Actual is a child of Trip.  They 
> > look the same to me except for the element name. 
> 
> I've copied a simplified version of your document here, indented to show
> the nesting (I've omitted the second instance of the second-level Trip
> element, and all the reoccurrences of SpeedBracket to keep it sort).
> 
> You can immediately see from the indented nesting that Actual is
> *inside* <Trip>...</Trip> and that Actual itself also has a child
> element, OpProfileSession, which in turn has multiple SpeedBracket elements.
> 
> <TripExportDataObject xmlns="http://tempuri.org/TripExportDataObject.xsd">
>   <Trip>
>     <TripID>39358</TripID>
>     <CurrentRevisionNumber>1</CurrentRevisionNumber>
>     <IsDispatch>false</IsDispatch>
>     <IsActive>false</IsActive>
>     <IsComplete>true</IsComplete>
>     <IsArchived>true</IsArchived>
>     <XVIN>67112663</XVIN>
>     <OrganizationID>1217</OrganizationID>
>     <UserDefinedRouteID>0</UserDefinedRouteID>
>     <StartDate>2008-04-19T04:00:00-05:00</StartDate>
>     <EndDate>2008-04-20T04:00:00-05:00</EndDate>
>     <LastMessageDate>2008-04-20T04:14:49.967-05:00</LastMessageDate>
>     <TripType>OperationProfile</TripType>
>     <TimeVariance>0</TimeVariance>
>     <DateLastModified>2008-04-20T04:14:49.96-05:00</DateLastModified>
>     <TripData>
>       <Trip InternalElementID="1" UniqueID="1" TripID="39358"
> 	TripType="OperationProfile" Audited="False"
> 	UnknownDriver="False" OrganizationID="1217">
> 	<Actual InternalElementID="2" UniqueID="2"
> 	  UserDefinedRouteID="0" XVIN="67112663" BegOdo="0" EndOdo="0"
> 	  BegFuel="0" EndFuel="0" BegDateTime="2008-04-19T04:00:00"
> 	  EndDateTime="2008-04-20T04:00:00" BegLatitude="0"
> 	  BegLongitude="0" EndLatitude="0" EndLongitude="0"
> 	  StartingRoadwayStatus="Taxable">
> 	  <OpProfileSession InternalElementID="3" UniqueID="3"
> 	    StartTime="2008-04-19T04:00:00" EndTime="2008-04-20T04:00:00"
> 	    StopDurationSeconds="86439" StopDistanceMiles="0"
> 	    StopFuelQtyGallons="0" StopIdleDurationSeconds="0"
> 	    StopIdleFuelQtyGallons="0" StopMoveDurationSeconds="0"
> 	    DelayCount="0" DelayDurationSeconds="0" DelayDistanceFeet="0"
> 	    DelayFuelQtyGallons="0" SpeedingDistanceMiles="0"
> 	    SpeedingDurationSeconds="0" PanicCount="0"
> 	    StateBordersCrossedCount="0" SessionDurationSeconds="86439"
> 	    StopCount="0" StoppedAtStart="True" Mode="Unknown">
> 	    <SpeedBracket InternalElementID="4" UniqueID="4"
> 	      HighSpeedMPH="5" DurationSeconds="0" DistanceMiles="0"
> 	      FuelQtyGallons="0" CoastDistanceMiles="0"
> 	      CruiseDurationSeconds="0" CruiseDistanceMiles="0"
> 	      CruiseFuelQtyGallons="0" BrakeCount="0"
> 	      LowTorqueDurationSeconds="0" HighTorqueDurationSeconds="0"
> 	      BracketNumber="0" />
> 	    <!-- more SpeedBracket elements go in here -->
> 	  </OpProfileSession>
> 	</Actual>
>       </Trip>
>     </TripData>
>   </Trip>
> </TripExportDataObject>
> 
> ///Peter
> -- 
> XML FAQ: http://xml.silmaril.ie/
>
date: Wed, 23 Apr 2008 07:06:02 -0700   author:   Tony Girgenti tony(nospam)@lakesideos.com

Re: Need information abount XML file   
Hello Peter and Martin.

I'm sorry for asking so many questions, but i feel like i need to know if 
this stuff inside of <TripData> has a special meaning in XML or a special 
name.

I want to process it using XML commands, but i don't know what it is called 
so that i can reference it.

I tried opening it in Internet Explorer, READXML it into a dataset, using it 
as an XML DataSource for a gridview.  Each case yields <TripData> as one big 
element.

What makes <TripData> different than the other elements in the xml file?

Thanks,
Tony

"Peter Flynn" wrote:

> Tony Girgenti wrote:
> > Martin Honnen wrote:
> >> I copied the markup you posted into a Visual Studio XML editor window 
> >> which adds indendation even for poorly formatted XML.<
> > 
> > I tried copying it into an xml edit file in VS.  Is my xml file poorly 
> > formatted?
> 
> It's not formatted for human reading. Not that is needs to be, unless
> you want humans to read it. But it's just a convenient way to do it:
> it's common to indent the structure so that you can see what element
> types are nested inside others. Any decent XML editor will do this for
> you. Never use a non-XML editor to open an XML document.
> 
> > I still can't see how you determined that Actual is a child of Trip.  They 
> > look the same to me except for the element name. 
> 
> I've copied a simplified version of your document here, indented to show
> the nesting (I've omitted the second instance of the second-level Trip
> element, and all the reoccurrences of SpeedBracket to keep it sort).
> 
> You can immediately see from the indented nesting that Actual is
> *inside* <Trip>...</Trip> and that Actual itself also has a child
> element, OpProfileSession, which in turn has multiple SpeedBracket elements.
> 
> <TripExportDataObject xmlns="http://tempuri.org/TripExportDataObject.xsd">
>   <Trip>
>     <TripID>39358</TripID>
>     <CurrentRevisionNumber>1</CurrentRevisionNumber>
>     <IsDispatch>false</IsDispatch>
>     <IsActive>false</IsActive>
>     <IsComplete>true</IsComplete>
>     <IsArchived>true</IsArchived>
>     <XVIN>67112663</XVIN>
>     <OrganizationID>1217</OrganizationID>
>     <UserDefinedRouteID>0</UserDefinedRouteID>
>     <StartDate>2008-04-19T04:00:00-05:00</StartDate>
>     <EndDate>2008-04-20T04:00:00-05:00</EndDate>
>     <LastMessageDate>2008-04-20T04:14:49.967-05:00</LastMessageDate>
>     <TripType>OperationProfile</TripType>
>     <TimeVariance>0</TimeVariance>
>     <DateLastModified>2008-04-20T04:14:49.96-05:00</DateLastModified>
>     <TripData>
>       <Trip InternalElementID="1" UniqueID="1" TripID="39358"
> 	TripType="OperationProfile" Audited="False"
> 	UnknownDriver="False" OrganizationID="1217">
> 	<Actual InternalElementID="2" UniqueID="2"
> 	  UserDefinedRouteID="0" XVIN="67112663" BegOdo="0" EndOdo="0"
> 	  BegFuel="0" EndFuel="0" BegDateTime="2008-04-19T04:00:00"
> 	  EndDateTime="2008-04-20T04:00:00" BegLatitude="0"
> 	  BegLongitude="0" EndLatitude="0" EndLongitude="0"
> 	  StartingRoadwayStatus="Taxable">
> 	  <OpProfileSession InternalElementID="3" UniqueID="3"
> 	    StartTime="2008-04-19T04:00:00" EndTime="2008-04-20T04:00:00"
> 	    StopDurationSeconds="86439" StopDistanceMiles="0"
> 	    StopFuelQtyGallons="0" StopIdleDurationSeconds="0"
> 	    StopIdleFuelQtyGallons="0" StopMoveDurationSeconds="0"
> 	    DelayCount="0" DelayDurationSeconds="0" DelayDistanceFeet="0"
> 	    DelayFuelQtyGallons="0" SpeedingDistanceMiles="0"
> 	    SpeedingDurationSeconds="0" PanicCount="0"
> 	    StateBordersCrossedCount="0" SessionDurationSeconds="86439"
> 	    StopCount="0" StoppedAtStart="True" Mode="Unknown">
> 	    <SpeedBracket InternalElementID="4" UniqueID="4"
> 	      HighSpeedMPH="5" DurationSeconds="0" DistanceMiles="0"
> 	      FuelQtyGallons="0" CoastDistanceMiles="0"
> 	      CruiseDurationSeconds="0" CruiseDistanceMiles="0"
> 	      CruiseFuelQtyGallons="0" BrakeCount="0"
> 	      LowTorqueDurationSeconds="0" HighTorqueDurationSeconds="0"
> 	      BracketNumber="0" />
> 	    <!-- more SpeedBracket elements go in here -->
> 	  </OpProfileSession>
> 	</Actual>
>       </Trip>
>     </TripData>
>   </Trip>
> </TripExportDataObject>
> 
> ///Peter
> -- 
> XML FAQ: http://xml.silmaril.ie/
>
date: Thu, 24 Apr 2008 07:43:01 -0700   author:   Tony Girgenti tony(nospam)@lakesideos.com

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us