Hi Kumar, Amit ,
Thankyou for using Microsoft Q&A platform and thanks for posting your question here.
As per my understanding regarding your query, it seems while trying to load the xml content into json file, null values are being generated for DN value of CDATA elements. Please let me know if that is not the correct interpretation.
I tried to use mapping dataflow in order to convert the shared xml data into json and it is properly loading the data without converting it to NULL.
Could you please try using XML connector for source dataset and JSON for sink and try loading the same using mapping dataflow and see if it works for you or not?
Following is the generated output json :
{
"OMeS":{
"PMSetup":{
"@interval":"15",
"@startTime":"2023-06-15T16:00:00.000+05:30:00",
"PMMOResult":[
{
"MO":{
"DN":"PLMN-PLMN/MRBTS-1224"
},
"PMTarget":{
"@measurementType":"SBTS_Energy_Consumption",
"M40002C0":"5622",
"M40002C1":"0",
"M40002C2":"5622"
}
},
{
"MO":{
"DN":"PLMN-PLMN/MRBTS-1224/LNBTS-1224"
},
"PMTarget":{
"@measurementType":"LTE_S1AP",
"M8000C11":"0",
"M8000C13":"0",
"M8000C14":"0",
"M8000C15":"0",
"M8000C16":"0",
"M8000C26":"0",
"M8000C27":"0",
"M8000C37":"0",
"M8000C38":"0",
"M8000C39":"0",
"M8000C40":"0",
"M8000C41":"0",
"M8000C42":"0",
"M8000C6":"0",
"M8000C7":"0",
"M8000C8":"0",
"M8000C9":"0"
}
}
]
}
}
}
In case you have any obligations for not using dataflow , then I would request you to share your piece of code which you are using to convert the xml data to json so that I can repro it and see what is missing.
Hope it helps. Kindly accept the answer if it is helpful. Thankyou.