How to convert well format xml in coldfusion?
Hi,
I am consuming asp.net webservice in coldfusion.It returns xml but it is not in wellformat.
Please suggest me how to convert to well format xml.
Advance Thanks,
chandra12345 wrote:
I am consuming asp.net webservice in coldfusion.It returns xml but it is not in wellformat.
Please suggest me how to convert to well format xml.
Technically speaking, a piece of text must be well-formed before it can be called an XML document. So you cannot yet say the returned text is XML.
The first thing to do is to check whether it is. Use, for example, isXml(someString) to check whether someString is well-formed XML.
There is no one standard way to convert text to well-formed XML. This is because there are infinitely many ways in which text can fail to be well-formed. The easiest solution for you will be to learn the rules for well-formed XML.
Any elementary book on XML will teach you that. If you find books old-fashioned, then you could instead google well-formed xml .
Similar Messages
-
How to convert date format dd.mm.yy into yyyymmdd?
Hello experts,
how to convert date format dd.mm.yy into yyyymmdd?
Thanx
AxelHi
go through these previous threads on similar question
https://forums.sdn.sap.com/click.jspa?searchID=673529&messageID=1763194
Date Conversion in Flat File
converting the DATE(yyyymmdd) into MONTH(yyyymm) format
Date Format Conversion from MM.DD.YYYY to YYYYMMDD
gives clear idea
Reagrds
Kiran
Message was edited by:
ravi kiran naalla -
How to convert Date format into day in ssrs reports?
Hi
How to convert date format into day?
10/01/2010 as like Monday like that?=weekdayname(datepart("w",Fields!mydate.Value))
-Vaibhav Chaudhari -
How to convert date format to MM/DD/YYYY
Hi,
How to convert date format to MM/DD/YYYY.
Thanks,
Senthilhi,
tri with this function module
data :l_date(10) type c
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
DATE_INTERNAL = SY-DATUM
IMPORTING
DATE_EXTERNAL = l_date.
this function module converts date from 20050601 to external format which is specified in user profile
cheers,
sasi -
How to convert idoc into xml/edifact
hi everyone just now i have started to work on edi, i want to kno how to convert idoc into xml/edifact. plz reply asap
Firstly, I will reply when and if I choose to. I do not require the asap nonsense at the end of your sentence.
EDIFACT - You will need a subsystem.
XML - I am not 100%. It may also depend on what version of SAP you are on. As I do not know if later versions of SAP can convert IDoc to XML. -
Question about well formatted xml
Does anyone know how to make a xml stream to be well formatted?
For example, if I got a String like:
String a = "<person><name>Jack</name><age>16</age></person>";
And I need to convert it to be well formatted like
<person>
<name>Jack</name>
<age>16</age>
</person>
Any idea?
ThanksAllenZhao wrote:
Does anyone know how to make a xml stream to be well formatted? "well formatted"? You're confusing this with "well formed".
For example, if I got a String like:
String a = "<person><name>Jack</name><age>16</age></person>";
And I need to convert it to be well formatted like
<person>
<name>Jack</name>
<age>16</age>
</person>
Any idea?
ThanksYeah, get something that will "pretty print" the XML for you. I believe JDOM can do it out of the box.
% -
How to convert date format into sap standard format?
Hi All,
In SAPUI5 screen i have one simple form in form i have date field which is format (MM/DD/YYYY). but i am getting POST error while inserting the data in to sap table.
I want convert date format in sap format (YYYY/MM/DD).
One more issue, when i am fetching the data from sap table,but the date display with time and time zone.
eg. Sat Aug 02 2014 05:30:00 GMT+0530 (India Standard Time)
I want to display only date.
Thanks,
Prashant.Now i am using <DatePicker id="Emp_fsdate" displayFormat="yyyy-MM-dd"/>
I checked in console, but date is display like mm/dd/yy
In my controller.js file i have written code
OData.request
requestUri: "http:sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata",
method: "GET",
headers:
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/atom+xml",
"DataServiceVersion": "2.0",
"X-CSRF-Token":"Fetch"
function (data, response){
var header_xcsrf_token = response.headers['x-csrf-token'];
OData.request
requestUri:
"http://sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata",
method: "POST",
headers:
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/atom+xml",
"DataServiceVersion": "2.0",
"Accept": "application/atom+xml,application/atomsvc+xml,application/xml",
"X-CSRF-Token": header_xcsrf_token
data:
Empid:Emp_id,
Empname:Emp_name,
Start_Date:Emp_sdate,
// End_Date:Emp_edate,
Status:Emp_status,
City:Emp_city,
Location:Emp_location,
and in my CREATE_ENTITY method
method ES_SODATA_CREATE_ENTITY.
DATA: ls_request_input_data TYPE zcl_zservice_final_mpc=>ts_et_sodata,
ls_userinfo TYPE zsodata.
DATA ls_temp TYPE sy-datum.
* Read Request Data
io_data_provider->read_entry_data( IMPORTING es_data = ls_request_input_data ).
* Fill workarea to be inserted
ls_userinfo-Empid = ls_request_input_data-Empid.
ls_userinfo-Empname = ls_request_input_data-Empname.
ls_userinfo-Start_Date = ls_request_input_data-Start_Date.
ls_userinfo-End_Date = ls_request_input_data-End_Date.
ls_userinfo-Status = ls_request_input_data-Status.
ls_userinfo-City = ls_request_input_data-City.
ls_userinfo-Location = ls_request_input_data-Location.
* Insert Data in table ZUSERINFO
INSERT zsodata FROM ls_userinfo.
IF sy-subrc = 0.
er_entity = ls_request_input_data. "Fill Exporting parameter ER_ENTITY
ENDIF.
endmethod.
But still i am getting an error
POST http://sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata 500 (Internal Server Error)
I am able to insert all field except date field. How to insert date field in sap table. -
How to convert date format in VC 7.0 to DD.MM.YYYY
Hi
I am on VC 7.0.
My requirment is to show Current date as a default value for a input field.
I am using date function now() as default value...and it is displaying the current date
08.07.2009 as Jul 08,2009
But my requirment is to display it as 08.07.2009
Please update me how to convert the data format to be displayed as DD.MM.YYYY format
ThanksHi,
Use DSTR method to change date format. Check the below link for details.
http://help.sap.com/saphelp_nw70/helpdata/en/49/032e66f4a4105ee10000000a42189d/frameset.htm
Regards
Basheer -
How to convert date format in XI? Help!
Hi Experts,
PIP is the input for XI.
The PIP has date as : <DateTimeStamp>20030515T000000.000Z</DateTimeStamp>.
How to convert it into MM/DD/YYYY format in XI?
Thanks
Gopalhi,
use two standard functions:
<b>substring </b>(to take first 8 chars from this field)
<b>DateTrans</b> to change 20030515 to MM/DD/YYYY
http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
that's all you need to do very simple
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
How to convert media format?
Hi All:
Does any one know how to convert the media format in JMF?
Is there any APIs or Demo about how to convert mp3,avi to the uncompressed wav format?
In windows platform, we can use DirectShow APIs. It's a component of the DirectX SDK. DirectX can help us to decompress the video or audio from compressed format to uncompressed format
(RGB for video, PCM for audio) and it supports streaming also.
Is there any familar APIs in JMF or Opensource for Mac?
Your feedbacks are highly appreciated!
Best Regards,
TangoHi,
You can set the codec chain in the Processor (during configured Stage) object which allow you to define your desired Codec, Multiplexer, etc.
For more information, you can look at the JMF API Guide. Since I know that JMF doesn't come with mp3 codec, I think you have to download a codec pack called "ffmpeg" etc which add more Codec to JMF.
About the Mac, I am sorry that I really don't know.
Best Regards
Ferdinand Ng -
How to convert Julian format date to regular date format
Hi,
I'm trying to convert Julian date(e.g. 2455657) passed to regular date format(e.g. 2011/4/6), but the Julian date is shown without conversion.
I set the following code, and changed the format to "Date" with "yyyy/M/d" format, but "2455657" is displayed, not "2011/4/6".
<?xdofx:to_date(HIRE_DATE_J,'J')?>
I also set the following with "Text" format field, but it still shows "2455657".
<?xdofx:to_char(to_date(HIRE_DATE_J,'J'),'YYYY/MM/DD')?>
How can I convert Julian format to regular date format?
Thanks in advance
ToruTake a look at the following post: http://blogs.oracle.com/xmlpublisher/2007/08/more_date_calculations.html
and look at the comments section. Based on the comments, it appears that you can not convert from Julian format and you would have to do this in your query.
Thanks,
BIPuser -
Hi, how to convert pdf to xml
hi, how to convert pdf to xml
Hi Sunil,
You have to use Acrobat for this.
Open the pdf, go to File > Save as other > More options > select xml and save the file. -
How to convert dvd format to HD AVI
How do I convert DVD format to HD AVI or HD MP4 from either iMovie or iDVD applications, please help, thank you
You need to convert them to mp4 or m4v. Handbrake is good for this. Mpegstreamclip and Format Factory(pc only) also work. they are all freeware. I'd recommend the handbrake since it also has presets for ipods and i think the ipad, and it has a queue feature....meaning if your dvd has several clips on it you can set it up to do all of them without starting each one individually.
-
How to convert date format(mm/dd/yy) into dd-mm-yy
I want to convert date format(mm/dd/yy) into dd-mm-yy
like 12/23/06 into 23-sep-06hey, you can use SimpleDateFormat to format your date. this is sample code, maybe could help you.
class dateFormat
public static void main(String[] args)
Date now = new Date();
System.out.println("Before format : "+now);
SimpleDateFormat sdf = new SimpleDateFormat( "dd-MM-yy" );//Change your date format in here.
String display = sdf.format(now);
System.out.println("After format : "+display);
}If you already understand about my sample code, i think it's easy to make your own date format. Just modified few line of my code. -
How to convert date format automatically
My question is that how to define fix format of date for hole form, suppose i enter the data in date column
the date should take automatically format how to this for example, type only 01012010 when i press enter after that at once show 01-01-2010. but you remeber for hole form because i dont want to fire trigger for each column.
I also tried on post-change and post-query but it doesn't work.The following best coding for your help, if you follow this coding, you will not also get error in text column.
Pre-text-item -- DEFINE TRIGGER AT FORM LEVEL
declare
dummy varchar2(20);
begin
if :system.trigger_item is not null then
dummy := get_item_property(:system.trigger_item,item_type);
if dummy = 'TEXT ITEM' then
dummy := get_item_property(:system.trigger_item,datatype);
end if;
if dummy = 'DATE' then
set_item_property(:system.trigger_item,format_mask,'DDMMYYYY');
end if;
end if;
end;
post-text-item -- DEFINE TRIGGER AT FORM LEVEL
declare
dummy varchar2(20);
begin
if :system.trigger_item is not null then
dummy := get_item_property(:system.trigger_item,item_type);
if dummy = 'TEXT ITEM' then
dummy := get_item_property(:system.trigger_item,datatype);
end if;
if dummy = 'DATE' then
set_item_property(:system.trigger_item,format_mask,'DD-MM-YYYY');
end if;
end if;
end;Thank you,
Maybe you are looking for
-
Update of Z field in marc in ALE/IDOC
Hi, I have an inbound IDOC in which I get the data for all the Z field which is appended in MARC table. When I am calling the FM 'IDOC_INPUT_MATMAS01' it is not updaiting the Z field and the IDOC is successfully created. Do I have to write the updaet
-
I'm trying to recover it .....but it's not working ....plz help me what shoud i do now?
-
Pairing iphone after updating to ios 8.0
I updated my iphone to version 8.0 and now it will not pair with my Mazda 3. It sounds like this is an issue with a lot of different car manufacturers. Help! Anyone?
-
Is there a way to change the keyboard layout on locked screen iOS7?
I updated my ipad from ios6 to ios7. I noticed a really ridiculous thing after i updated my IPAD. The thing is after starting my device with ios7, i tried to enter my pass on the lock screen, but no way. My old password consisted characters such as ¥
-
hi, i bought ipod 5g from saudi arabia there the ft was not missing but in pakistan ft was missing and automaticly date time also not working plz help