cancel
Showing results for 
Search instead for 
Did you mean: 

Blank value representation in XML

Former Member
0 Kudos

Hi

I have a Query regarding Blank value representation in XML.

My Requirement is for an Outbound Idoc - FIle(XML) scenario

one of the IDOC Field PHFLG is Blank and i should get the tag as <PHFLG></PHFLG> , but the tag appears as <PHFLG/>.

Could any one please let me know how to populate the The Tag <PHFLG></PHFLG> when the Field from IDOC is Blank.?

Regards,

Praveen Kalwa

Edited by: praveen kalwa on Mar 25, 2010 7:15 PM

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>Could any one please let me know how to populate the The Tag <PHFLG></PHFLG> when the Filed from IDOC is Blank.?

can't you just insert SPACE value into PHFLG?

then it will look like <PHFLG> </PHFLG>

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Michal ,

But i would require the Tag as <PHFLG></PHFLG> when the IDOC field PHFLG is empty .

Is their any ways how to do this?

Regards,

Praveen Kalwa

Answers (3)

Answers (3)

Shabarish_Nair
Active Contributor
0 Kudos

to conclude

in XML language;

<PHFLG></PHFLG> = <PHFLG/>

both are the same thing !!!

Former Member
0 Kudos

hi Vijay,

But i would require the Tag as <PHFLG></PHFLG> when the IDOC field PHFLG is empty .

Is their any ways how to do this?

regards,

Praveen Kalwa

stefan_grube
Active Contributor
0 Kudos

> But i would require the Tag as <PHFLG></PHFLG> when the IDOC field PHFLG is empty .

Open the file with notepad, you will see that the tags are the way you request.

stefan_grube
Active Contributor
0 Kudos

> one of the IDOC Field PHFLG is Blank and i should get the tag as <PHFLG></PHFLG> , but the tag appears as <PHFLG/>.

In fact all empty tags are <PHFLG></PHFLG>. You see them only as <PHFLG/>.

So there is nothing you have to do here.

Besides there is no diference between the two ways of representing an empty tag.

justin_santhanam
Active Contributor
0 Kudos

Hi,

<PFHLG/> is correct representation of XML structure if the source element in blank

If you want <PFHLG> </PFHLG> then you need to introduce a blank space. Again it depends on ur reqmt.

Thanks!