How to populate the xml file into treeview including attributes using dom method in c# windows from???
<?xml version="1.0" standalone="yes"?>
<Student_Details>
<Student Id="1">
<Name>sandeep</Name>
<Age>12</Age>
<Mobile>123456789</Mobile>
</Student>
<Student Id="2">
<Name>ololjk</Name>
<Age>kjlokmo</Age>
<Mobile>njonojniohuj</Mobile>
</Student>
<hello Id="10">
</hello>
<Student Id="3">
<Name>Sandeep Pr</Name>
<Age>12</Age>
<Mobile>9865231870</Mobile>
</Student>
<Student Id="4">
<Name>ololjk</Name>
<Age>kjlokmo</Age>
<Mobile>njonojniohuj</Mobile>
</Student>
all i can fount in internet is which will not display the attributes so pls upload a proper code which also creates an attribute node???
Sandeep Puvvadi
Enumerate your XML using
XDocument. For each element
Generate a new TreeNode with whatever text you want to show
Insert the node into your tree
Enumerate all the attributes of the element using the
Attributes() method
Insert a child node of the element node for each attribute with whatever text you want to show
Note that your XML is not valid. You have a <hello> element in the middle of it and the root element is not closed. You'll need to fix that before the XML can be parsed.
Michael Taylor
http://blogs.msmvps.com/p3net
Similar Messages
-
<?xml version="1.0" standalone="yes"?>
<Student_Details>
<Student Id="1">
<Name >sandeep</Name>
<Age>12</Age>
<Mobile>123456789</Mobile>
</Student>
<Student Id="2">
<Name >ololjk</Name>
<Age>kjlokmo</Age>
<Mobile>njonojniohuj</Mobile>
</Student>
<Student Id="3">
<Name >Sandeep Pr</Name>
<Age>12</Age>
<Mobile>9865231870</Mobile>
</Student>
<Student Id="4">
<Name>ololjk</Name>
<Age>kjlokmo</Age>
<Mobile>njonojniohuj</Mobile>
</Student>
<Student Id="5">
<Name>ololjk</Name>
<Age>kjlokmo</Age>
<Mobile>njonojniohuj</Mobile>
</Student>
<Student Id="6">
<Name>ololjk</Name>
<Age>kjlokmo</Age>
<Mobile>njonojniohuj</Mobile>
</Student>
<Student Id="7">
<Name>ololjk</Name>
<Age>kjlokmo</Age>
<Mobile>njonojniohuj</Mobile>
</Student>
<Student Id="8">
<Name>ololjk</Name>
<Age>kjlokmo</Age>
<Mobile>njonojniohuj</Mobile>
</Student>
<Student Id="9">
<Name>ololjk</Name>
<Age>kjlokmo</Age>
<Mobile>njonojniohuj</Mobile>
</Student>
<Student Id="10">
<Name>ololjk</Name>
<Age>kjlokmo</Age>
<Mobile>njonojniohuj</Mobile>
</Student>
</Student_Details>
Sandeep PuvvadiHave a look at the
XmlDocument class. Read the
documentation (it's all written there for us all). If you'll have implementation questions, feel free to ask again. At the moment, I can't see what you've already tried and what's not working.
Armin -
How to import the xml file into bcc?
My input file to atg is xml which contain category or products assets.
I want the scheduler to run in such a way that it should auto create a project and send an email to client for approval.
When the client approves the xml file,then run the scheduler to input the xml file datas into bcc.
i will be using : SingletonSchedulableService for this
Give me a guidance for the same.
Thanks in advance.I want to implement this in bcc.
Which listener will listen for the approval of the client for the email (which contains the xml to import)we sent to him?
You would have to do custom development to hook your custom workflow with the inbound email. For sending email notifications the action is already there and while creating its element in ACC you can specify a JSP for the email template. You may refer following relevant documentation:
Oracle ATG Web Commerce - Workflows
Oracle ATG Web Commerce - Workflow Action Elements
I recommend to refer the existing DeploymentEmailer source in <ATG>\Publishing\samples\Java and see different DeploymentEvent types and states can be used based on your requirement in your custom component. Also refer these API javadocs to know about the available deployment events and process:
DeploymentEvent (ATG Java API)
DeploymentServer (ATG Java API)
ATG does have a /atg/dynamo/service/POP3Service component to retrieve mails from a POP3 e-mail server but it is primarily used for detecting the bounced email. Not too sure if it would help or fit in your case but still you can go through about its details to know what is already there:
Oracle ATG Web Commerce - Bounced E-mail
You may also refer to the InboundEmail event and API javadocs for InboundEmailMessage which are used in this bounced email detection feature:
Oracle ATG Web Commerce - InboundEmail Event
InboundEmailMessage (ATG Java API)
Now based on all this, if you extend and customize a lot of things it would be bit complex and tedious to detect the inbound approval mail based on its content and then advance your workflow. Another approach can be to put a URL in the mail template of your notification email which the approver would have to click and on the landing page you can authenticate and advance your custom workflow as required. -
How to chunk the XML files into smaller files using peoplecode.
We are trying to load the Invoices through our XMLDoc PeopleCode that we have written long back.
Previously the file is not that big and we are able to load them successfully. But now each file is more than 200MB and we are getting the below error when initiated the process..
Process Request shows status of 'INITIATED' or 'PROCESSING' but no longer running “.
I tried to chunk the file manually to 50MB it is able to run it properly but chuncking manually is not possible for all the files as it is time taking process..
Is there any way that we can check on Webserver/Appserver whether whats happening and how to handle this error..
Or any sample code to divide the big file into smaller files..
Please let me know your thoughts..Good morning Ashok,
Your data is in a SQL*Loader supported datatype, so basically it should not be a problem.
Have you checked the Database Utilities guide (for Oracle9i for instance: http://www.lc.leidenuniv.nl/awcourse/oracle/server.920/a96652/toc.htm) on how to handle this?
I'll also repeat my previous question, have you ever been able to load data into the database using SQL*Loader (either using ASCII values or any other datatype)?
For the OWB part, have you read "Importing Data Definitions" (typically chapter 4)? More specifically, "Specifying Field Properties" in "About Flat File Sources and Targets"?
In "SQL*Loader Properties" it says the following:
Type Describes the data type of the field for the SQL*Loader. You can use the Flat
File Sample Wizard to import the following data types: CHAR, DATE, DECIMAL
EXTERNAL, FLOAT EXTERNAL, INTEGER EXTERNAL, ZONED , AND ZONED
EXTERNAL. For complete information on SQL*Loader field and data types, refer to
Oracle9i Utilities. Currently, only portable datatypes are supported.
If you check the database utitlities guide (chapter 6 Field List Reference) and look for "SQL*Loader Datatypes", you'll find (packed) decimal under the Nonportable Datatypes. This implies that OWB does not support it.
This does not mean you can't use SQL*Loader, you'll only have to define everything separate from OWB and call it separately as well.
Good luck, Patrick -
How to import a XML file into the document?
Hai,
i had created a table using xml file....
Now i want to import that xml file tabel into the document...
Can any one tell me how to import the xml file into the document?
thanks
senthilHai...
this is senthil...
i'm beginner for creating adobe indesign plugins..
i want to import a html file in the document...
i want to create a table by using html tags and
that table will be imported into the document..
How shall i do it?
can any one plzz explain me? -
How to get the XML file if we are using the Product short name.
Hi,
Till now I have used Short name of the Concurrent Program for Code while creating a Data Definition. Now saw a seeded template which has given the Code by Product short name. If we have the concurrent program then it is easy to refer the fields by checking the XML file. In this case how to find the XML file or how to refer all the fields if we have given code with Product short name. I saw this for iReceivables(ARI). Anybody please help me.
Thanks.Hi Siva
Just to clarify, rather than the short name of the conc program there is a shipped data definition that just uses the product short name? What is the data def so I can check it.
Regards, Tim -
How to populate the Quering data into Excel sheet in Oracle
Dear Guys,
How to populate the Quering data into Excel sheet in oracle.
Please provide a solution.
Thanks & Regards,
Senthil K KumarHi
To make Excel sheets from sqlplus, you can use the markup html tag in sqlplus.
Here's an example.
Example
<code>
SET LINESIZE 4000
SET VERIFY OFF
SET FEEDBACK OFF
SET PAGESIZE 999
SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF
SPOOL c:\test_xls.xls
SELECT object_type
, SUBSTR( object_name, 1, 30 ) object
, created
, last_ddl_time
, status
FROM user_objects
ORDER BY 1, 2
SPOOL OFF
SET MARKUP HTML OFF ENTMAP OFF SPOOL OFF PREFORMAT ON
SET LINESIZE 2000 VERIFY ON FEEDBACK ON
</code> -
How to upload an XML file into another system
Hi friends,
I have a requirement where I need to upload an XML file into one system
which has been downloaded using another system.
I have tried using the method ' cl_gui_frontend_services=>gui_upload'
to upload the file but it is going for dump.
I have used the method ' w_xml->import_from_file' also,
but it is also going for dump ,because both methods are using the same FM
' GUI_UPLOAD'.
Can any one suggest on this.
Regards,
Bhargavi.D"Here is the Explaination for uploading the XML Format file to sap " through ABAP Program ....
1. Basically you simply have to convert the XML file into the proper IDoc format. There are many ways to achieve this. One solution would be to convert it externally to SAP, e.g. via VB Script or with an XSLT transformation. Or you use the built in SAP functions for importing an IDoc from an XML stream.
2. Uploading a file is either done via GUI_UPLOAD or via the usual way of reading a file from the application server (Open dataset. Read dataset) But what do you mean by "send to external system"? Do you want to convert an IDoc into XML? Then you simply define an XML port with WE21 to send the IDoc out.
Here is an example of code that loads an XML from file and posts it as an IDoc. Please keep in mind that the XML has to be in its canonical format as described in the interface repository: ifr.sap.com (choose the template of the desired IDoc from there as an example).
data: data_tab type table of char1024.
data: XML_STREAM type string.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'D:test.xml'
* FILETYPE = 'ASC'
* HAS_FIELD_SEPARATOR = ' '
* HEADER_LENGTH = 0
* READ_BY_LINE = 'X'
* DAT_MODE = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* CHECK_BOM = ' '
* IMPORTING
* FILELENGTH =
* HEADER =
TABLES
DATA_TAB = DATA_TAB
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'CONVERT_TABLE_TO_STRING'
EXPORTING
I_TABLINE_LENGTH = '1024'
IMPORTING
E_STRING = XML_STREAM
TABLES
IT_TABLE = DATA_TAB[].
write: / xml_stream color col_total.
data: CONTENT_LENGTH type string.
data: CONTENT_TYPE type string.
data: REMOTE_ADDR type string.
CALL FUNCTION 'IDOC_INBOUND_XML_VIA_HTTP'
EXPORTING
XML_STREAM = XML_STREAM
CONTENT_LENGTH = content_type
CONTENT_TYPE = content_type
REMOTE_ADDR = remote_addr
EXCEPTIONS
NO_IDOCS_SAVED = 1
TAG_ERROR = 2
NO_DATA_RECEIVED = 3
NO_IDOCS_RECEIVED = 4
SEGMENT_ERROR = 5
IDOC_WAS_SEND_SECOND_TIME = 6
OTHERS = 7
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
write: / sy-subrc color COL_NEGATIVE.
ENDIF.
reward points if it is usefull.......
Girish -
How to call the XML file as PrivateResourcePath in JSP
Hi All,
I want to call the layer-config.xml values in JSP dropdown list. How to call the XML file as PrivateResourcePath in JSP... please advise me if any solution.
locaiton: dist/PORTAL-INF/layer-config.xml
<?xml version="1.0" encoding="utf-8" ?>
- <layer-config>
- <system>
<layer>Test</layer>
<internal>true</internal>
</system>
- <system>
<layer>Test1</layer>
<internal>false</internal>
</system>
- <system>
<layer>Test3</layer>
<internal>false</internal>
</system>
</layer-config>
Thanks in advance.Hi,
The below link may help you.
[Accessing image from dist/imgaes folder inside JSPDynpage Component;
Regards,
Suresh Bachimanchi -
How to extract the cobol files into owb
Hi
How to extract the cobol files in owb,I am using OWB9.2.
Ex:I am having 2 records DCEC4000100 9159000050C those values are 5 bytes 'RAVI and 6 bytes '15000'.
Using contorl file i am trying to load these into Oracle,But i am not able into insert these records into Oracle.
Can any tell me how to handle this kind of situation?
Regards,
RupakGood morning Ashok,
Your data is in a SQL*Loader supported datatype, so basically it should not be a problem.
Have you checked the Database Utilities guide (for Oracle9i for instance: http://www.lc.leidenuniv.nl/awcourse/oracle/server.920/a96652/toc.htm) on how to handle this?
I'll also repeat my previous question, have you ever been able to load data into the database using SQL*Loader (either using ASCII values or any other datatype)?
For the OWB part, have you read "Importing Data Definitions" (typically chapter 4)? More specifically, "Specifying Field Properties" in "About Flat File Sources and Targets"?
In "SQL*Loader Properties" it says the following:
Type Describes the data type of the field for the SQL*Loader. You can use the Flat
File Sample Wizard to import the following data types: CHAR, DATE, DECIMAL
EXTERNAL, FLOAT EXTERNAL, INTEGER EXTERNAL, ZONED , AND ZONED
EXTERNAL. For complete information on SQL*Loader field and data types, refer to
Oracle9i Utilities. Currently, only portable datatypes are supported.
If you check the database utitlities guide (chapter 6 Field List Reference) and look for "SQL*Loader Datatypes", you'll find (packed) decimal under the Nonportable Datatypes. This implies that OWB does not support it.
This does not mean you can't use SQL*Loader, you'll only have to define everything separate from OWB and call it separately as well.
Good luck, Patrick -
How to break the PDF file into images?
How to break the PDF file into images? There should be settings in Photoshop CS 6 that imports PDF file and break it into images. I have a short instruction:
2. Open the file in Photoshop.
3. A new window should open to Import PDF. Click on images, not pages import pdf into Photoshop.doc
4. Select all the files shown (shift + click), Click O.K. Four files should open on your screen.
Was anybody successful with that?Whether this is available solely depends on the structure of the PDF and whether it actually contains whole images that can be extracted separately. Depending on whatgoing on in the PDF this may simply not be the case and the images have been tiled and split up in multiple "objects" whose appearance can only be retained by rasrerizing the whole page...
Mylenium -
How to call the XML file as Private
Hi All,
I want to call the layer-config.xml values in JSP dropdown list. How to call the XML file as PrivateResourcePath in JSP... please advise me if any solution.
locaiton: dist/PORTAL-INF/layer-config.xml
<?xml version="1.0" encoding="utf-8" ?>
- <layer-config>
- <system>
<layer>Test</layer>
<internal>true</internal>
</system>
- <system>
<layer>Test1</layer>
<internal>false</internal>
</system>
- <system>
<layer>Test3</layer>
<internal>false</internal>
</system>
</layer-config>
Thanks in advance.Hi,
The below link may help you.
[Accessing image from dist/imgaes folder inside JSPDynpage Component;
Regards,
Suresh Bachimanchi -
How to overwrite the xml file...
Hi,
can any one help me how to overwrite the xml file.....
~~SkFlash Player cannot write XML files at all. but using
php+flash we could do it . -
How to embed the html file into form 6i?
How to embed the html file into form. What control activeX should i use? please help!!!!!!
You can use web.show_document function for this purpose. See
form builder help topics for more details.
Hope this helps. -
How to create the SWF file which was included surrogate pairs.
I would like to make sure how to create the SWF file which are included surrogate pairs.
The error of outside the scope of unicode occurred when I compiled(mxmlc) the as file which was set surrogate pairs to 'Unicoderange'.
Ex, I set the ' '(UTF-16 is '20B9F') to 'Unicoderange'.
However, I cannot add the surrogate pairs.
The error of outside the scope of Unicode occurred when I compiled the AS file.
The reason of error was that the Unicode(UTF-16) of surrogate pairs is invalid.
Then, I read the following pages.
These pages are written that unicode-range supported surrogate pairs.
http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_07.html
http://www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#descdef-unicode -range
So please let me know how to create the SWF file which are included surrogate pairs.
Environment
- Flex3.5a
- TTC: meiryo(ver6.02), msgothic(ver2.50), mspgothic(ver2.50)
Thanks,
Takeshi Ishihara.I've been able to create project jar files in Eclipse by selecting Export from the File menu, then choose Java - Jar file - and provide the required information, name, destination folder etc. But when I do this, I do not export other jars on the build path this way nor do I expect to do this. I am only concerned with creating a jar file of my own work. A jar file does not "contain" other jar files. If the jar file contains the main method, and requires other jars for it's execution, then you may wish to include a reference to required jars on the class path entry of the Manifest file of the jar file you create. I'm not sure how to create a Manifest file in eclipse though..
Maybe you are looking for
-
How do I change my email for iMessage on my MacBook Air?
I no longer use the email that is set up for iMessage, how do i change it to a more recent email address?
-
Default WorkBook file extension for all users of BEx 7 in Offce 2007
Hi Experts We recently started using office 2007 with BEx 7. However, many users still has Office 2003 installed. I am looking to set the default file extension for all users to be .XLS. I know that this option is available in Client level (Global Se
-
Table created in Dataguard and standby
Hi, in a DATAGUARD_STANDBY configuration, if I create a table in primary DB, will I see it in STANDBY ? How many times after ? What are the parameteres that detemine the time interval ? Many thanks.
-
IBM Thinkpad T40 volume applet???
I have bought an old Thinkpad T40 recently and managed to install Arch and XFCE4 successfully. Now I'm trying to get everything working. My question is about volume applet (or maybe it has an other name?). Initially I ran Ubuntu live CD on it and not
-
Help requested on FireWire (SBP2) on CentOS 4.5 for Oracle RAC installation
I am running 64-bit CentOS 4.5 (2.6.9-55.EL kernel) on AMD64. I can load the FireWire modules (SBP2, OHCI1394 & IEEE1394) and see the partitions created of the FireWire drive using fdisk -l. The /proc/scsi/scsi correctly shows the drive. If I create