You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Team,
We have a requirement wherein we need to have an attribute inside a tag and that tag should include a string, but without any child elements.
The result should look something similar to below.
@xmlelement({
localName: 'HLSSignalingData',
prefix: CPIX_NS
})
export class HLSSignalingData extends XmlObject {
@XmlAttribute({
localName: 'playlist'
})
public playlist?: string;
@XmlChildElement({})
public hls?: string;
} @xmlelement({
localName: 'DRMSystem',
namespaceURI: CPIX_NS_URI,
prefix: CPIX_NS
})
export class DRMSystem extends XmlObject {
@XmlChildElement({
localName: 'HLSSignalingData',
prefix: CPIX_NS,
parser: HLSSignalingData
})
public hLSSignalingData?: HLSSignalingData;
}
`
Below is what we are getting right now with the above code snippet.
Hi Team,
We have a requirement wherein we need to have an attribute inside a tag and that tag should include a string, but without any child elements.
The result should look something similar to below.
I0VYVC1YLUtFWTpNRVRIT0Q9U0FNUExFLUFFUyxLRVlJRD0weDEwMDAwMDAwMTAwMDEwMDAxMDAwMTAwMDAwMDAwMDAxLFVSST0iZGF0YTp0ZXh0L3BsYWluO2Jhc2U2NCxBQUFBUFhCemMyZ0FBQUFBN2UrTHFYbldTczZqeUNmYzFSMGg3UUFBQUIwYURYZHBaR1YyYVc1bFgzUmxjM1FpREhSbGMzUWdZMjl1ZEdWdWRBPT0iLEtFWUZPUk1BVD0idXJuOnV1aWQ6ZWRlZjhiYTktNzlkNi00YWNlLWEzYzgtMjdkY2Q1MWQyMWVkIixLRVlGT1JNQVRWRVJTSU9OUz0iMSI=
I0VYVC1YLVNFU1NJT04tS0VZOk1FVEhPRD1TQU1QTEUtQUVTLFVSST0iZGF0YTp0ZXh0L3BsYWluO2Jhc2U2NCxBQUFBUFhCemMyZ0FBQUFBN2UrTHFYbldTczZqeUNmYzFSMGg3UUFBQUIwYURYZHBaR1YyYVc1bFgzUmxjM1FpREhSbGMzUWdZMjl1ZEdWdWRBPT0iLEtFWUZPUk1BVD0idXJuOnV1aWQ6ZWRlZjhiYTktNzlkNi00YWNlLWEzYzgtMjdkY2Q1MWQyMWVkIixLRVlGT1JNQVRWRVJTSU9OUz0iMSI=
`We have the below code
@xmlelement({
localName: 'HLSSignalingData',
prefix: CPIX_NS
})
export class HLSSignalingData extends XmlObject {
@XmlAttribute({
localName: 'playlist'
})
public playlist?: string;
}
@xmlelement({
localName: 'DRMSystem',
namespaceURI: CPIX_NS_URI,
prefix: CPIX_NS
})
export class DRMSystem extends XmlObject {
@XmlChildElement({
localName: 'HLSSignalingData',
prefix: CPIX_NS,
parser: HLSSignalingData
})
public hLSSignalingData?: HLSSignalingData;
}
`
Below is what we are getting right now with the above code snippet.
I0VYVC1YLVNFU1NJT04tS0VZOk1FVEhPRD1TQU1QTEUtQUVTLFVSST0iZGF0YTp0ZXh0L3BsYWluO2Jhc2U2NCxBQUFBUFhCemMyZ0FBQUFBN2UrTHFYbldTczZqeUNmYzFSMGg3UUFBQUIwYURYZHBaR1YyYVc1bFgzUmxjM1FpREhSbGMzUWdZMjl1ZEdWdWRBPT0iLEtFWUZPUk1BVD0idXJuOnV1aWQ6ZWRlZjhiYTktNzlkNi00YWNlLWEzYzgtMjdkY2Q1MWQyMWVkIixLRVlGT1JNQVRWRVJTSU9OUz0iMSI=
Is it possible to include data inside a tag with attributes without inserting the child element. In this case the additional tag added is
The text was updated successfully, but these errors were encountered: