At 21:59 -0700 10/23/2012, G.Shaw wrote:
>Hello all,
>
>I'm new to BBEdit. I'm trying to do the following:
>
>Input:
><ShipAddress1>884 MapleAve SE</ShipAddress1>
>    <ShipAddress2 />
>    <ShipCity>Cumming</ShipCity>
>    <ShippingPriority>Ground</ShippingPriority>
>    <ShipCountry>United States</ShipCountry>
>    <ShippingName>Ron Howard</ShipLastName>
>    <ShipPhoneNumber>999-999-9999</ShipPhoneNumber>
>    <ShipPostalCode>30312</ShipPostalCode>
>    <ShipState>GA</ShipState>
>
>1. Reorder the above such that it's ShippingName, ShippingAddres1,...etc


I do have a couple of questions about the above task:

a) Do you want to just rearrange the fields within each record while
leaving the tags in place, or do you also want to strip out the tags?

b) Do all the records you want to process contain the exact same set of fields?


>**
>Last question
>
>Input:
><OrderLine>
>      <PrintLocationCode>C1</PrintLocationCode>
>      <ProductCode>ABCDEFGHIJK-12345678</ProductCode>
>      <PartnerGarmentSKU>IS-LS-UN-M</PartnerGarmentSKU>
>      <Quantity>1</Quantity>
>    </OrderLine>
>    <OrderLine>
>**
>Output:
><OrderLine>
>      <PrintLocationCode>C1</PrintLocationCode>
>      <ProductCode>ABCDEFGHIJK</ProductCode>
>        <Quantity>1</Quantity>
><OrderLineDet>
><Code1>12345678</Code1>  ### Note:12345678 are the #s after the dash above.
><Code2>test</Code2>
>    </OrderLineDet>
>   </OrderLine>
>    <OrderLine>
>**

For this task, a similar question:

* Do all the records you want to process contain the exact same set of fields?


Regards,

 Patrick Woolsey
==
Bare Bones Software, Inc.             <http://www.barebones.com/>

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>



Reply via email to