Wordpress xml file from local to remote MySQL
I am developing a php site with an attached WordPress blog using Dreamweaver CS6 on my localhost test server. My php pages contain echos from private blog posts with an average of several divs per page.
Heres my problem, when I export the xml from my localhost and import the xml into my remote hosted WordPress blog the categories I assigned locally do not have the same category #assignment.
Example:
blog/?cat=10 for a catagory on my local blog changes assignment to lets say
blog/?cat=9 on my hosted remote site blog.
Of course this totally messes up the echoed content going to the respective divs on the php main site pages.
How can I either get the xml to maintain the cat=# or else edit the category number assignment on the remote site?
The reason I want to develop locally is to be able to demo the site in different locals which do not have internet access. In other words I would like my localhost test server site mirror the actucal site on the web.
Any suggestions would be greatly appreciated.
I wonder why the order of catID has changed remotely. Can you do the following?
Do a full backup of your remote database
Export your local DB as .sql file
Import that onto your remote DB (full import)
See if the order remains the same. Let us know how it goes.
If that doesn't work, I'll walk you through how to change the order to match local listing.
Similar Messages
-
Apple Remote Desktop ARD 3.7 cannot drag files from local to remote.
Apple Remote Desktop ARD 3.7 cannot drag files from local to remote. I've been able to drag n drop folders and files from my local to the remotes for years until the update to 3.7. Anyone else experiencing this issue? I've tried changing preferences. No luck. Maybe I'm missing a setting somewhere.
I'm on 10.8.5. Remote is same with 3.7 client. This happens with multiple remotes.Let me guess. The Get and Send clibboard contents buttons are greyed out too?
It is only affecting me on clients already upgraded to 3.7. None of the clients on older versions are affected.
ARD is also crashing a lot.
Most of the time I go to a screen share to a client it takes way too long, so I clock Stop, then try to connect again and works straight away.
Hopefully a patch will be released soon. -
Read a xml file from local directory, transform it and put in new local dir
Hi,
I have a simple requirement. I have one XML file in d://source folder. I want to read it, transform it and want to put the transformed xml file in new location d://target.
I am new to OSB. Please help me out to complete the above requirement.
Thanks in advance.
Cheers.Use a polling file transport proxy service to read the file(d://source folder)
Do the necessary transformation XML or MFL(if the file is fixed length strings) in the proxy service stages.
Use a file transport business service to write the file to a directory(d://target).To be called from the proxy service route node.
http://docs.oracle.com/cd/E17904_01/doc.1111/e15866/transports.htm -
How to send xml file from local folder to azure storage
Hi,
My plan is i have xml files which are under folders in my local.
I want to use mobile service to send xml files to azure storage,
how shall i do that, either by c# or mobile service.
If internet stop, I will use my mobile service to transfer all xml files to azure storage and run web job to do to update azure
sql by xml file.
please advice.
SupermanHi,
You could refer the following link for assistance with uploading image files to Azure Blob Storage using Mobile Services:
http://azure.microsoft.com/en-us/documentation/articles/mobile-services-windows-phone-upload-data-blob-storage/
And for image files you could refer the following link:
http://stackoverflow.com/questions/25977406/upload-a-text-file-with-azure-mobile-services
Regards,
Malar. -
Can't open HTML files from local or remote location
Hello Experts,
I've tried deleting my remote location, and adding it back
again several times and I still can't open any HTML files. I can
check out the pages, and check them back in, but nothing shows up
on the screen. Does anyone know what may be causing this? I'd
really like to update my website soon. If I click on the web images
they open up in my photoshop, it's just the Dreamweaver HTML
portions that won't open up.
Thank you,
Calie> Unfortunately I can't seem to get any of the pages open
to check out the code
> view.
CLARIFY please.
You said you open them, but design view is blank.
The file is either open or not open
Is the file open? And design view is blank? Or is the file
NOT open and
there are error messages?
If the is open, even if empty design view There should be
something in code
view.
some not random attempts at fixing this:
open dreamweaver.
Open this site.
DON'T open any files.
open find and replace
Find in Source Code, sitewide:
<!-- -->
replace with: [nothing]
reason: not much of one, but I've never seen an empty html
comment. It
doesn't need to be there.
Then, i'm trying to think of a way to fix this badly nested
bold tag
<p><b>
<a href="about-me.html">ABOUT ME</a> |
<a href="contact.html">CONTACT</a> |
<a
href="
http://blog.loveBaRKLee.com/">BLOG</a>
</p></b>
the closing </b> needs to be moved to before the
closing paragraph tag.
My next guess is that it's a css problem-
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.lovebarkle
e.com%2Fdog-bed-accents.html&profile=css21&usermedium=all&warning=1&lang=en
moz-radius
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.lovebarklee.com&charset=%
28detect+automatically%29&doctype=Inline&group=0
Fix the errors, clarify if the file does or doesn't open in
dreamweaver, if
it opens and design view is blank or if it doesn't open and
crashes the app.
moosepucky.
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/ -
Unable to upload files from local computer to remote server (Was: Dreamweaver)
I have lost the connection between the remote location and the local location for files on my computer. Where to I correct this issues, since I cannot upload files from local to remote. Host server from server to my computer works fine, Running Dell computerr XP operating system with CS3 Dreamweaver. Need all the help I can get.
I am now having a "ftp error - cannot make connection to host. Dreamweaver
encoutered a netwoerk or file system error. I did as you suggested and I
get to basic site definition, ( which looks o.k.), next screen ( no,I do
not want to use a server technology) Next screen ( edit local copies on my
machine ( file location looks o.k.), next screen (connect to remote
server=ftp) address of web server is correct, ( no folder on server, or ftp
login or ftp password) do not enable check in or check out
summary: local
Site name:midhba
local root folder:midhba
remote info:
access; ftp
FTP host: midhba.com
check in.check out diabled
testing server (set up later) -
How to read a XML file from BLOB column and insert in a table - PL/SQL Only
Hi,
To make data load more simple to end user instead placing file on the server and use SQL-LOADER, I came up with new idea that using oracle ebusiness suite attachment functionality. that loads a XML file from local PC to a database column(table is fnd_attachments, default data type is BLOB over here).
I tried with DBMS_LOB and didnt get around.
Please can anyone tell me how to read the BLOB column using PL/SQL and store the data in a oracle table. Here's the sample XML file and table structure FYI.
<?xml version="1.0" encoding="UTF-8"?>
<dataroot xmlns:od="urn:schemas-microsoft-com:officedata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Corporate_alloc.xsd" generated="2009-07-07T14:17:49">
<Corporate_alloc>
<PKG_CODE>BKCORP</PKG_CODE>
<PKG_NAME>Corporate Edition - Books</PKG_NAME>
<DET_CODE>B9780080543758</DET_CODE>
<DET_NAME>Waves, Tides and Shallow-Water Processes</DET_NAME>
<ALLOCATION_RATIO>0.000041</ALLOCATION_RATIO>
</Corporate_alloc>
<Corporate_alloc>
<PKG_CODE>BKCORP</PKG_CODE>
<PKG_NAME>Corporate Edition - Books</PKG_NAME>
<DET_CODE>B9780080534343</DET_CODE>
<DET_NAME>Hydrostatically Loaded Structures</DET_NAME>
<ALLOCATION_RATIO>0.000127</ALLOCATION_RATIO>
</Corporate_alloc>
</dataroot>
CREATE TABLE TEST_XML
( PKG_CODE VARCHAR2(50),
PKG_NAME VARCHAR2(100),
DET_CODE VARCHAR2(20),
DET_NAME VARCHAR2(500),
ALLOCATION_RATIO NUMBER )
Thanks
EBVIn regards to #3, use the COLUMNS functionality of XMLTable instead of using Extract. Two simple examples are
Re: XML Data - Caliculate fields
Re: Extractvalue function not recognised -
Getting error when reading xml file from a remote connection
Hi all,
I want to read an xml file from a remote connection, not from my local machine.So when i am creating the data server i am giving the host name(that is the ip of the machine where the xml file is located), giving the proper username and password and giving the path of the xml file. When i am testing the connection the error that is coming:- "Connection failed and the xml file could not be created, verify that you have write permission in the directory"...
but read write and execute permissions have been given on the directory as well as to the file...
Regards,
SouravHi Sutirtha,
Initially I have started the agent.sh giving the agent name <agent name>and port number 20910 and defined it in the topology manager it is showing that the agent test is succesful. Then I tested a particular Data server against that agent and the test was successful.
After this we had stopped the agent and restarted it.
However now suddenly the testing against the remote agent is failing with the following excep:
java.lang.Exception:
at com.sunopsis.graphical.l.pm.a(pm.java)
at com.sunopsis.graphical.l.pm.s(pm.java)
at com.sunopsis.graphical.l.pm.g(pm.java)
at com.sunopsis.graphical.l.pm.a(pm.java)
at com.sunopsis.graphical.l.pm.a(pm.java)
at com.sunopsis.graphical.l.iz.actionPerformed(iz.java)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at com.sunopsis.graphical.l.pm.q(pm.java)
at com.sunopsis.graphical.l.pm.<init>(pm.java)
at com.sunopsis.graphical.frame.b.jh.bx(jh.java)
at com.sunopsis.graphical.frame.bo.w(bo.java)
at com.sunopsis.graphical.frame.bo.d(bo.java)
at com.sunopsis.graphical.frame.w.actionPerformed(w.java)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
PS: do i have to modify any file after or before starting the odi agent
Thnks and Rgds,
Sourav
Edited by: user13263578 on Mar 15, 2011 9:35 PM
Edited by: user13263578 on Mar 15, 2011 9:48 PM -
How to make an XML file from SQL query on local disc (c:\temp)?
This query shows me XML results, but can I somehow make an XML file to local disc?
Thanks.
DECLARE @IMO NUMERIC(8,0)
DECLARE @Counter INT
SELECT @Counter = 1
WHILE ( @Counter <15 )
BEGIN
SET @IMO = (SELECT ImoNo from Vessel where ID=@Counter)
SELECT top 1
@IMO as ImoNumber,
VesselName,
Time,
lat as CurrentLatitude,
lon as CurrentLongitude,
sog as SpeedOverGround,
cog as CourseOverGround,
hdg as HeadingInDegrees,
GoingToCountry = (SELECT TOP 1 CountryName
FROM ShipSchedule
WHERE ImoNo = @IMO and DestPosArrived = 'false'
ORDER BY DestPosETA ),
GoingToHarbour = (SELECT TOP 1 Harbour
FROM ShipSchedule
WHERE ImoNo = @IMO and DestPosArrived = 'false'
ORDER BY DestPosETA ),
DestinationLatitude = (SELECT TOP 1 DestPosLAT
FROM ShipSchedule
WHERE ImoNo = @IMO and DestPosArrived = 'false'
ORDER BY DestPosETA ) ,
DestinationLongitude = (SELECT TOP 1 DestPosLON
FROM ShipSchedule
WHERE ImoNo = @IMO and DestPosArrived = 'false'
ORDER BY DestPosETA ),
ArrivalTime = (SELECT TOP 1 DestPosETA
FROM ShipSchedule
WHERE ImoNo = @IMO and DestPosArrived = 'false'
ORDER BY DestPosETA ),
GoingFromCountry = (SELECT TOP 1 CountryName
FROM ShipSchedule
WHERE ImoNo = @IMO and DestPosArrived = 'true'
ORDER BY DestPosETA desc),
GoingFromHarbour = (SELECT TOP 1 Harbour
FROM ShipSchedule
WHERE ImoNo = @IMO and DestPosArrived = 'true'
ORDER BY DestPosETA desc),
DepartureTime = (SELECT TOP 1 DestPosETD
FROM ShipSchedule
WHERE ImoNo = @IMO and DestPosArrived = 'true'
ORDER BY DestPosETA desc)
FROM Position
WHERE ImoNo = @IMO
order by time desc
for Xml AUTO,elements,root('SplosnaPlovba')
SELECT @Counter = @Counter + 1
ENDYou can use bcp with query out option
use your above query as the source query and use queryout option after specifying destination as your required local file path (specify extension as .xml)
see
http://visakhm.blogspot.com/2013/10/bcp-out-custom-format-data-to-flat-file.html
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Copy file from local host to remote host
Hello,
I need to copy a simple file from local file system , to another computer on the same network.
How should i do that in a simple java program ?
Thanks !Well , I tried that from winXP to winXP on another machine and it worked great :
InputStream in = new FileInputStream(new File("C:\\temp\\myFile.txt"));
OutputStream out = new FileOutputStream(new File("\\\\9.143.85.143\\c$\\tmp\\myFile.txt"));
// Transfer bytes from in to out
byte[] buf = new byte[1024];
int len;
while ((len = in.read(buf)) > 0) {
out.write(buf, 0, len);
in.close();
out.close();
BUT, in order to copy to a linux machine, I tried to put this as the new File :
OutputStream out = new FileOutputStream(new File("\\\\9.143.86.145\\root\\tmp\\myFile.txt"));
and it doesn't work. How should I format the new File path in order to copy to a linux FS ?
Thanks ! -
Accessing a XML file located in a remote machine.
I have a XML file located in a remote machine(source machine), and I want to be able to move the data from that file to a remote database (target).
I have a central ODI deployment and a central master and worker repository.
The issue I have is that it seams to me that in order to use an XML file the XML file needs to be local to the ODI client(topology manager, designer etc).
The question what do I need to do in order to access the file located in the remote source machine if that machine does not have an ODI client?
ThanksHi Terence,
why don't you try to put all your JPA stuff (classes, persistence.xml, etc) in a "library" jar file and then deploy it inside your .war (under META-INF/lib) and .ear (under the lib)?
Is it acceptable for your purpose?
Fabio De Santi -
Reading a XML File from server in BI Publisher
Hi All,
Can any one help me how i can get the XML file from server to BI Publisher using data source.
The file should transfer directly to BI Publisher with out storing it in any local directory in local system.
Thank you
Shalini.Shalini
Do you mean that you have another system that is going to serve up the XML data and you want BIP to be able to pick it up as a data source ?
Couple of options:
1, If the XML filename can remain static you can use the 'XML File' datasource. You need to set up a directory on the server and then maybe create a dummy XML file to start with upon which you can build a report. Then have your external data generator put the file into that directory and then schedule the report so that BIP will pick and report.
2. IS the data generator accessible via HTTP or web service - BIP supports those too.
3. More complex but with a little effort you can create a servlet that will pick up the file from a directory and serve it up to BIP on demand - Im going to write about this on the blog this week
Regards
Tim -
Hi S9 installation Gurus,
Please try to resolve this long awaited issue with Planning installation as this is purely configuration related issue.
Detail of Problem:-
After Susessful configuration of
1) Foundation Services (Hyperion Shared Services)
2) Essbase administration services
3) Essbase Server
4) Hyperion reporting and analysis
5) Planning -----> Product options, Register with shared services, configure database, deploy to application server (Appache)
Error Point: when i tick ckeck box in front of Product instance registration
click next
create instance
click next
instance name-Plan1
Web tier host name: my machine name (neeraj-pc, as i installed locally all component of hyperion)
server port: 8300 (system suggesting)
tick on active instance
click next
Error Pop Up "System Failure: Error while retrieving xml file from database"
Details of PlanningSystemDB (file :- \Hyperion\common\config\PlanningSystemDB.properties)
SYSTEM_DB_DRIVER=hyperion.jdbc.sqlserver.SQLServerDriver
SYSTEM_DB_URL=jdbc:hyperion:sqlserver://neeraj-PC:1433
SYSTEM_DB_USER=puser
SYSTEM_DB_PASSWORD=GGAKFJ
SYSTEM_DB_CATALOG=p1db
SYSTEM_DB_TYPE=SQL
INSTANCE=
Note: puser (SQL Authenticated user)
Thanks
Kumar
Edited by: user10385300 on Dec 4, 2008 5:44 AMThis has been resolved at :- Product Instance Registration Error Message: "System Failure: Error while retrieving xml file from database"
Cheers
John
http://john-goodwin.blogspot.com/ -
I have created XML File from Query using below function:-
select dbms_xmlgen.getxml('
select * from tblreports where rownum<=1') from dual;
"(CLOB) <?xml version="1.0"?>
<ROWSET>
<ROW>
<REPORTID>preRES0011</REPORTID>
<ALIAS>Date wise Summary of pins Report</ALIAS>
<ACTIVE>Y</ACTIVE>
<TITLE>Date wise Summary of pins Report</TITLE>
<QUERY>select tsb.month1,
count(SIDNUMBER)GENERATED,
sum(case WHEN SERIALSTATUSID='SRS01' THEN 1 ELSE 0 END)NotAllocated,
SUM(CASE WHEN SERIALSTATUSID='SRS02' or SERIALSTATUSID='SRS03' or SERIALSTATUSID='SRS05' THEN 1 ELSE 0 END)ALLOCATED,
SUM(CASE WHEN SERIALSTATUSID='SRS02' or SERIALSTATUSID='SRS01' THEN 1 ELSE 0 END)NOTASSIGNEDTORESELLER,
SUM(CASE WHEN SERIALSTATUSID='SRS03' THEN 1 ELSE 0 END)READYTOACTIVATE,
sum(CASE WHEN SERIALSTATUSID='SRS05' THEN 1 ELSE 0 END)ACTIVATED,
sum(CASE WHEN SERIALSTATUSID='SRS06' THEN 1 ELSE 0 END)Terminated,
sum(CASE WHEN SCRAPSTATUSID='CST01' THEN 1 ELSE 0 END)scraped,
sum(CASE WHEN LOCKSTATUSID='CST01' THEN 1 ELSE 0 END)locked,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
from (SELECT TO_CHAR(CREATEDATE,'DD-MON-YYYY')MONTH1 ,PINUSAGEMODEID,SERIALBATCHID,SERIALIDCOUNT,CREATEDATE FROM TBLMSERIALBATCH )TSB,
tblmserial ts
where TSB.SERIALBATCHID=ts.SERIALBATCHID
and to_char(TSB.CREATEDATE,'MON-YYYY')='$1'
GROUP BY TSB.MONTH1
order by TO_DATE(MONTH1,'dd-mon-yyyy') DESC</QUERY>
<CONNECTIVITYID>C0001</CONNECTIVITYID>
<INPUTREQUIRED>Y</INPUTREQUIRED>
<INPUTNAME>Month</INPUTNAME>
<CREATEDATE>30-JAN-10</CREATEDATE>
<LASTMODIFIEDDATE>22-FEB-10</LASTMODIFIEDDATE>
<CREATEDBY>reportadmin</CREATEDBY>
<LASTMODIFIEDBY>reportadmin</LASTMODIFIEDBY>
<TITLEPARAM>Y</TITLEPARAM>
<SUBTITLE>Date wise Summary of pins Report For &1</SUBTITLE>
<ELEMENTTYPEID>AET002</ELEMENTTYPEID>
<REPORTTYPEID>RTP01</REPORTTYPEID>
<SORTFIELD>Disable</SORTFIELD>
</ROW>
</ROWSET>
But in that it is taking ''' for ' ' instead of '$1' it is taking '$1'
how to keep ' ' in XML file instead of &apos?You can use bcp with query out option
use your above query as the source query and use queryout option after specifying destination as your required local file path (specify extension as .xml)
see
http://visakhm.blogspot.com/2013/10/bcp-out-custom-format-data-to-flat-file.html
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Import xml file from server to itab
Hi all,
I have a little issue loading data from xml file in server into my itab.
With my file in local (C:\example\example.xml) works fine, but if try this with the same file in the server (e:\example\example.xml) dont work. This is my code resume.
TYPES: BEGIN OF TY_TAB,
NAME TYPE STRING,
VALUE TYPE STRING,
END OF TY_TAB.
DATA: ITAB TYPE STANDARD TABLE OF TY_TAB,
WA TYPE TY_TAB.
* Nombre del fichero
DATA: NOMBREFICHEROXML LIKE IBIPPARMS-PATH,
* data XML
DATA: LCL_XML_DOC TYPE REF TO CL_XML_DOCUMENT,
V_SUBRC TYPE SYSUBRC,
V_NODE TYPE REF TO IF_IXML_NODE,
V_CHILD_NODE TYPE REF TO IF_IXML_NODE,
V_ROOT TYPE REF TO IF_IXML_NODE,
V_ITERATOR TYPE REF TO IF_IXML_NODE_ITERATOR,
V_NODEMAP TYPE REF TO IF_IXML_NAMED_NODE_MAP,
V_COUNT TYPE I,
V_INDEX TYPE I,
V_ATTR TYPE REF TO IF_IXML_NODE,
V_NAME TYPE STRING,
V_PREFIX TYPE STRING,
V_VALUE TYPE STRING,
V_CHAR TYPE CHAR2.
NOMBREFICHEROXML = 'E:\example\example.xml'.
CREATE OBJECT LCL_XML_DOC.
CALL METHOD LCL_XML_DOC->IMPORT_FROM_FILE
EXPORTING
FILENAME = NOMBREFICHEROXML
RECEIVING
RETCODE = V_SUBRC.
IF V_SUBRC EQ '0'.
V_NODE = LCL_XML_DOC->M_DOCUMENT.
CHECK NOT V_NODE IS INITIAL.
V_ITERATOR = V_NODE->CREATE_ITERATOR( ).
V_NODE = V_ITERATOR->GET_NEXT( ).
WHILE NOT V_NODE IS INITIAL.
CASE V_NODE->GET_TYPE( ).
WHEN IF_IXML_NODE=>CO_NODE_ELEMENT.
V_NAME = V_NODE->GET_NAME( ).
WHEN IF_IXML_NODE=>CO_NODE_TEXT OR
IF_IXML_NODE=>CO_NODE_CDATA_SECTION.
*text node
V_VALUE = V_NODE->GET_VALUE( ).
MOVE V_VALUE TO V_CHAR.
IF V_CHAR <> CL_ABAP_CHAR_UTILITIES=>CR_LF.
WA-NAME = V_NAME.
WA-VALUE = V_VALUE.
APPEND WA TO ITAB.
CLEAR WA.
ENDIF.
ENDCASE.
*advance to next node
V_NODE = V_ITERATOR->GET_NEXT( ).
ENDWHILE.
WRITE:/ 'file ok'.
ELSE.
WRITE:/ 'file ko'.
Anyone can help, or tell me a easy way to load xml file from server to my itab that works with my old sap 4.7.
thanks
Edited by: DIEGO_GT on Nov 18, 2011 12:04 PMHi Diego.
Next time try to search in [www.sdn.sap.com] first.
See the following example: [http://wiki.sdn.sap.com/wiki/display/ABAP/UploadXMLfiletointernal+table]
Regards.
Rafael Rojas.
Maybe you are looking for
-
Gather data from the iBook readers?
Hi there! I want to add 5 questions to the last page of my iBook. some will be yes\no, some require numerical answer. is it possible? where can I "Collect" the data? can i get it in a application the users download from the appStore? to a web server
-
Lync 2011 Mac Book air Video calling
I cannot seem to get the Lync video calling to work on the Mac Book air, I have tried a few different copmputers but the video button in the client is always greyed out - am I missing something or trying to do something that just doesnt work ? I trie
-
New MacBook Air and iPad question
Hi everyone, I purchased a Macbook in 2009 and have today upgraded to a brand new MacBook Air. My question is about my iPhone and iPad and keeping these up to date. Both are running iOS 5 so I do all updates by wifi which is easy and fast. Althoug
-
CS5 Photoshop stopped working when I upgraded to Yosemite how do I proceed from here?
CS5 photoshop will not open in Yosemite, Illustrater and indesign are still working together with acrobat... is there a way forward, or is the situation a total loss?
-
I am not able to open a numbers spreadsheet I made earlier in numbers
I am not able to open a numbers spreadsheet I made earlier in numbers, took me quitte Some time so hopefully someone can help. In using numbers on my ipad