playMaker

Author Topic: DataMaker XML Help  (Read 690 times)

skrrrappa

  • Playmaker Newbie
  • *
  • Posts: 4
DataMaker XML Help
« on: September 25, 2021, 02:29:51 AM »
Hey there,

I'm using the DataMaker/Json/XML combo in my project for testing, and im trying to get the values from my xml to a hastable.
First im using the action called "Convert Json String to Xml Node", then storing it in a Data Maker XML Proxy.
After that I'm using the Hashtable get XML Node Properties and adding properties, so i can store it in the hashtable i guess?! .
My question is how can i get the values from "deeper" in the XML?

Here is (part of) the XML: (sorry if its long)
Code: [Select]
<root>
  <id>59047861</id>
  <token_id>83183391308340292270945357330051686154668161157287579553563917182958114439169</token_id>
  <num_sales>0</num_sales>
  <background_color />
  <image_url>https://lh3.googleusercontent.com/DP5EOs_DobUrasjIkh37G0Lda190ZySSt8M8uLoDEbE9xop7L8IAap9n51sIRqigcCsTkd93hWAMVqgUSXJF3gwqORXFiZ_7rKIV</image_url>
  <image_preview_url>https://lh3.googleusercontent.com/DP5EOs_DobUrasjIkh37G0Lda190ZySSt8M8uLoDEbE9xop7L8IAap9n51sIRqigcCsTkd93hWAMVqgUSXJF3gwqORXFiZ_7rKIV=s250</image_preview_url>
  <image_thumbnail_url>https://lh3.googleusercontent.com/DP5EOs_DobUrasjIkh37G0Lda190ZySSt8M8uLoDEbE9xop7L8IAap9n51sIRqigcCsTkd93hWAMVqgUSXJF3gwqORXFiZ_7rKIV=s128</image_thumbnail_url>
  <image_original_url />
  <animation_url />
  <animation_original_url />
  <name>Graph</name>
  <description>Graph</description>
  <external_link />
  <asset_contract>
    <address>0x495f947276749ce646f68ac8c248420045cb7b5e</address>
    <asset_contract_type>semi-fungible</asset_contract_type>
    <created_date>2020-12-02T17:40:53.232025</created_date>
    <name>OpenSea Collection</name>
    <nft_version />
    <opensea_version>2.0.0</opensea_version>
    <owner>102384</owner>
    <schema_name>ERC1155</schema_name>
    <symbol>OPENSTORE</symbol>
    <total_supply />
    <description>
    </description>
    <external_link />
    <image_url />
    <default_to_fiat>false</default_to_fiat>
    <dev_buyer_fee_basis_points>0</dev_buyer_fee_basis_points>
    <dev_seller_fee_basis_points>0</dev_seller_fee_basis_points>
    <only_proxied_transfers>false</only_proxied_transfers>
    <opensea_buyer_fee_basis_points>0</opensea_buyer_fee_basis_points>
    <opensea_seller_fee_basis_points>250</opensea_seller_fee_basis_points>
    <buyer_fee_basis_points>0</buyer_fee_basis_points>
    <seller_fee_basis_points>250</seller_fee_basis_points>
    <payout_address />
  </asset_contract>

So i can access token_id, id, image_url, but how can i access what is inside the <asset_contract> part? And add it to the hashtable?

I attached  some images from my fsms too.

Thanks!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: DataMaker XML Help
« Reply #1 on: September 25, 2021, 08:04:13 AM »
Hi.
There are several Tutorials on Youtube for Playmaker XML
Maybe one or some of them can help.

skrrrappa

  • Playmaker Newbie
  • *
  • Posts: 4
Re: DataMaker XML Help
« Reply #2 on: September 25, 2021, 05:36:15 PM »
I fixed it.
The issue was bad XPath Syntax usage and I misspelled the word "address" to "adress" .  :)