d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Homework Help > Anyone Familiar With Xbrl/xml?
Add Reply New Topic New Poll
Member
Posts: 9,629
Joined: Oct 26 2005
Gold: 10,805.53
Nov 16 2015 08:29pm
I have zero clue on how to create an xbrl/xml file for an example purchase order.

Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Nov 16 2015 08:43pm
i dont know anything about xbrl, but xml is straight forward enough. are you already familiar with xml?

as a starting point, identify the information that seems relevant. for example:

Vendor, ShipTo, Item, Qty, Cost, Amount

We can see that there can be a list of items, so we wanna keep it in a list.

eg:
<root>
<Vendor>Apple</Vendor>
<ShipTo>some address</ShipTo>
<Items>
<Item>
<Name>Plaque</Name>
<Qty>1</Qty>
<Cost>1</Cost>
<Amount>1</Amount>
</Item>
</Items>
</root>

can't be bothered to keep scrolling so i just put in placeholder data.
Member
Posts: 9,629
Joined: Oct 26 2005
Gold: 10,805.53
Nov 16 2015 08:53pm
I ended up with something like this. Is it even close?

<PurchaseOrder PurchaseOrderNumber="3060" OrderDate="2015-03-17">
<Address Type="Shipping">
<Name></Name>
<Street>1600 Pennsylvania Avenue</Street>
<City>Washington</City>
<State>DC</State>
<Zip>20500</Zip>
<Country>USA</Country>
</Address>
<Address Type="Vendor">
<Name>Apple Inc</Name>
<Street>1 Infinite Loop</Street>
<City>CUPERTINO</City>
<State>CA</State>
<Zip>95014</Zip>
<Country>USA</Country>
</Address>
<Items>
</Item>
<Item PartNumber="">
<ProductName>I Love AIS Plaque</ProductName>
<Description>"I Love AIS Plaque" for sale to victims at RMU</Description>
<Quantity>30</Quantity>
<Cost>14.99</Cost>
<Total>$449.70</Total>
</Item>
</Items>
</PurchaseOrder>
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Nov 16 2015 08:57pm
Quote (shadowlurker06 @ Nov 16 2015 09:53pm)
I ended up with something like this. Is it even close?

<PurchaseOrder PurchaseOrderNumber="3060" OrderDate="2015-03-17">
<Address Type="Shipping">
<Name></Name>
<Street>1600 Pennsylvania Avenue</Street>
<City>Washington</City>
<State>DC</State>
<Zip>20500</Zip>
<Country>USA</Country>
</Address>
<Address Type="Vendor">
<Name>Apple Inc</Name>
<Street>1 Infinite Loop</Street>
<City>CUPERTINO</City>
<State>CA</State>
<Zip>95014</Zip>
<Country>USA</Country>
</Address>
<Items>
</Item>
<Item PartNumber="">
<ProductName>I Love AIS Plaque</ProductName>
<Description>"I Love AIS Plaque" for sale to victims at RMU</Description>
<Quantity>30</Quantity>
<Cost>14.99</Cost>
<Total>$449.70</Total>
</Item>
</Items>
</PurchaseOrder>


to start with, validate it. your items/item tag is off

http://www.xmlvalidation.com/

you're also missing some data. FOB and total for example

This post was edited by carteblanche on Nov 16 2015 09:15pm
Go Back To Homework Help Topic List
Add Reply New Topic New Poll