Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

PBDOM - A little help

$
0
0

I am reverting my XML parsings from Visual Studio to PB 11.5.1

 

I have some quite huge XMLs and I trying to understand how PBDOM works (and have very little time to do so ).

 

Below is a tiny bit of an XML that I need to parse.

 

Could you provide my some sample code (just the beginning of a parse into variables) in order to understand practically PBDOM's philosophy?

 

Thanx in advance!

 

 

<RoomStays>

          <RoomStay>

                    <RoomRates>

                              <RoomRate NumberOfUnits="1" RatePlanCode="XXX1" RoomTypeCode="YYY2">

                                        <Rates>

                                                  <Rate EffectiveDate="2013-05-22" ExpireDate="2013-05-23" RateTimeUnit="Day" UnitMultiplier="1">

                                                            <Base AmountAfterTax="140.00" CurrencyCode="USD"/>

                                                  </Rate>

                                                  <Rate EffectiveDate="2013-05-23" ExpireDate="2013-05-24" RateTimeUnit="Day" UnitMultiplier="1">

                                                            <Base AmountAfterTax="120.00" CurrencyCode="USD"/>

                                                  </Rate>

                                        </Rates>

                              </RoomRate>

                    </RoomRates>

                    <GuestCounts>

                              <GuestCount Age="1" Count="1"/>

                    </GuestCounts>

                    <TimeSpan End="2013-05-24" Start="2013-05-22"/>

                    <Total AmountAfterTax="280.00" CurrencyCode="USD"/>

                    <BasicPropertyInfo CompanyCode="XXX"/>

                    <Comments>

                              <Comment>

                                        <Text>This is a test comment !@ $%^&*()123</Text>

                              </Comment>

                    </Comments>

          </RoomStay>

</RoomStays>


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>