This is very important assignment i tried tried getting struck dam dam ..
Experts just need to sort this issue plz .
Please check the attachment provided :) XML file attached
What is need is very simple :
In XML file there are
-
+
+
+
.
.
.
.
+
+
+
The thing i need is looks simple but i am feeling a bit complex ..
In the attachment file there is Entity Action Tag right Under that we have many tag key-value pairs .. In that what i need is when i input to text boxes or a method in console like "LONGNAME" & "CATEGEORYNAME" .. I need to get all the details of those inc those values in some manner like CATEGEORYNAME: APPAREL ... All key value pair under the matched Entities ACTION ..
Second Thing is When i dig even deeper like given "LONGNAME" & "CATEGEORYNAME" & also "NAME" which is under attributes I JUST NEED to get the value ...
Hope i made clear so everyone can understand .
Cheers
Have a nice day

SUNIL GUTTAPosted Feb 13, 2014, 8:20 AM
Yes you used link right :) Nice one .. ..
I just have some xml files with more attributes .. Will test it and any issues will get back to you .
Thank you so so much
Have a nice day
VulpesPosted Feb 12, 2014, 10:04 AM
The output is :
SUNIL GUTTAPosted Feb 12, 2014, 9:42 AM
under 1st node : ----It means FALSE . so APPLY VAT: FALSE
under 2nd node : ----- output should be NEW . so Status : NEW
Like that it goes on for N number of entity action nodes under entity ...
Thank you for help .. ..
VulpesPosted Feb 12, 2014, 8:52 AM
For now I've hard-coded it to give the output you wanted:
SUNIL GUTTAPosted Feb 11, 2014, 10:35 PM
Humm actually in your output u displayed the XML contents like key valued-pairs .. Humm yes i need just that but some what different ..
I need to provide the input like LONGNAME value , CATEGEORY NAME value ..
On combination of both I need to filter which ENTITY ACTION WE ARE DEALING ..
ex : If we give LONGNAME : Auto_TS8_DELTAMODE_01 & CategoryName : Apparel
The output should be like :
Id : 39
ExternalId : Auto_TS8_DELTAMODE_01
LongName : Auto_TS8_DELTAMODE_01
EntityTypeId : 21
EntityTypeName : product
ContainerId : 5
ContainerName : product Master
OrganizationName : river Works
CategoryId : 1
CategoryName : Apparel
CategoryLongName : Apparel
CategoryPath : Apparel
CategoryLongNamePath :
ParentEntityId : 1
ParentExternalId : Apparel
ParentExtensionEntityId : 0
ParentExtensionEntityExternalId :
ParentExtensionEntityContainerId : 0
ParentExtensionEntityContainerName :
ParentExtensionEntityCategoryId : 0
ParentExtensionEntityCategoryPath :
ParentExtensionEntityCategoryLongNamePath :
Locale : en_WW
Action : Add
Name : apply VAT
LongName : Apply VAT
Name : status ---------------------> ISSUE IS RIGHT HERE ..
LongName : Status --------------------->
IN THIS I NEED VALUE ...
-
-
APPLY VAT: TRUE .
So final out pit should look like :
The output should be like :
Id : 39
ExternalId : Auto_TS8_DELTAMODE_01
LongName : Auto_TS8_DELTAMODE_01
EntityTypeId : 21
EntityTypeName : product
ContainerId : 5
ContainerName : product Master
OrganizationName : river Works
CategoryId : 1
CategoryName : Apparel
CategoryLongName : Apparel
CategoryPath : Apparel
CategoryLongNamePath :
ParentEntityId : 1
ParentExternalId : Apparel
ParentExtensionEntityId : 0
ParentExtensionEntityExternalId :
ParentExtensionEntityContainerId : 0
ParentExtensionEntityContainerName :
ParentExtensionEntityCategoryId : 0
ParentExtensionEntityCategoryPath :
ParentExtensionEntityCategoryLongNamePath :
Locale : en_WW
Action : Add
Name : apply VAT
LongName : Apply VAT
APPLY VAT: TRUE .
I hope you understand . . . . .
Regards
VulpesPosted Feb 11, 2014, 5:57 PM
The output is:
SUNIL GUTTAPosted Feb 11, 2014, 3:40 PM
But thing is need to display information in listbox or what ever in key-value pairs so ..so one ca neatly recognize whats present in which .
In the attachment i.e when typing longName i am getting wrong results ..
Actually i planned i.e keeping 2 textboxes so i can enter LONGNAME & CATEGORYNAME .. SO IT JUST acts as a composite key in sql server will only fetch data of all Attributes where the given textbox input matches ... Output should be in key valued pairs ..
Anyway as you said it definately a start i can hope on .. Ty for help .
FroglegPosted Feb 11, 2014, 3:06 PM