Weird characters before the xml start tag on Host

When we load xml generated in Biztalk into an OS/400 Host environment, they always have some weird characters before the declaration (<?xml) causing the host program to fail. The characters look like gibberish from another planet (not really..look like
some binary encoding). Can one of the experts please point me to what must be changed?

If you look at the message using a hex editor, the UTF-8 BOM (Byte Order Mark) is EF BB BF, if you are using Unicode, the BOM is FE FF or FF FE (depending on little or big Endian encoding).
If you "Stop" your send port and run a test, you can view the suspended message body in hex and determine if these characters are a BOM.
David Downing... If this answers your question, please Mark as the Answer. If this post is helpful, please vote as helpful.

Similar Messages

  • How to escape or remove the special characters in the xml element by regula

    Hi members,
    How to escape or remove the special characters in the xml element by regular expression  in java??
    For Example ,
    <my:name> aaaa </my:name>
    <my:age> 27 </my:age>
    In the above example , i have to retrieve the value of the <my:name> Element(For examlpe -- i have to get "aaaa" from <my:name> tag)...
    How to retreive this value by using DOM with XPATH in java
    Thanks in Advance

    Hi members,
    I forget to paste my coding for the above question....This is my coding......In this display the error...... Pls reply ASAP.......
    PROGRAM:
    import java.io.IOException;
    import java.util.Hashtable;
    import java.util.Map;
    import org.w3c.dom.*;
    import org.xml.sax.SAXException;
    import javax.xml.parsers.*;
    import javax.xml.xpath.*;
    public class DOMReaderForXMP {
         static Document doc;
         static XPath xpath;
         static Object result;
         static NodeList nodes;
         public DOMReaderForXMP() throws ParserConfigurationException, SAXException,
                   IOException, XPathExpressionException {
              DocumentBuilderFactory domFactory = DocumentBuilderFactory
                        .newInstance();
              domFactory.setNamespaceAware(true);
              DocumentBuilder builder = domFactory.newDocumentBuilder();
              doc = builder.parse("d:\\XMP.xml");
              XPathFactory factory = XPathFactory.newInstance();
              xpath = factory.newXPath();
         public static void perform(String path) throws Exception {
              result = xpath.evaluate(path, doc, XPathConstants.NODESET);
              nodes = (NodeList) result;
         public void check() throws Exception {
              perform("//my:name/text()");
              if (!nodes.item(0).getNodeValue().equals("application/pdf")) {
                   System.out.println("Mathces....!");
    ERROR:
    Exception in thread "main" net.sf.saxon.trans.StaticError: XPath syntax error at char 9 in {/my:name}:
    Prefix aas has not been declared

  • Error: An attribute cannot appear more than once in the same start tag

    Hi Everyone,
    when i run the page sometimes it works fine but sometimes it throws Compilation Error as below.
    "Error(502,1224): file:/C:/Jdeveloper/jdevhome/jdev/myhtml/OA_HTML/fwk/t/Session_2055663493/region1.uix<Line 502, Column 1224>: XML-20124: (Fatal Error) An attribute cannot appear more than once in the same start tag."
    And i delete the particular file from the path and run the page so this time it works fine.
    But later after sometime i get the same error but the session number will be changed, then again i need to delete it and run.
    What can be the permanent solution for this issue?
    Plz let me know any suggetions.
    Thanks.

    Seems like the mdl file is corrupted or was not generated correctly.
    Can you try to create the mdl file again and then try the import ?
    If it doesn't work then try contacting Oracle Support.

  • My i phone 5c wont stop restarting!! sometimes it takes hours before the phone starts working again. Sometimes when it does this red lines go up and down the screen. Im so ready to go back to my 4s does anyone know how to fix this???

    my i phone 5c wont stop restarting!! sometimes it takes hours before the phone starts working again. Sometimes when it does this red lines go up and down the screen. Im so ready to go back to my 4s does anyone know how to fix this??? Should i mention i have tried restarting back to new and i have the most up to date software. Please help

    If the center portion of the monitor is flickering then your GPU on the logic is bad or (unlikely given this symptom) that your monitor cable is pinched/damaged.
    **Imediately backup ALL your important data while you can still see things on the monitor
    Contact Apple for appt. for in shop diagnostics for full examination and for parts replacement
    nobody can give you a cost on a repair that isnt fully diagnosed online and cannot be.
    perform SMC reset just to check:
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer. 

  • After a time my computer starts flashing it is resolved by turning off Thunderbird. There is no link to how long before the flashing starts.

    After an unspecified time my computer starts flashing. I assumed it was a hardware problem but found that every time I switch off Thunderbird the flashing stops. If i turn it back on the flashing has stopped but eventually returns. There is no time link, it might be hours before the flashing starts. It is always resolved if I turn off Thunderbird. I have compacted folders, altered check for new email times. I cannot force the flashing to start.

    In System Preferences > Startup Disk, select your internal hard drive by clicking on it. The trouble you are seeing is because the Mac is looking for a network to start from and can't find one. Point it to your hard drive instead.

  • TS4006 is there a way to undo the "Erase" command before the deletion starts?

    is there a way to undo the "Erase" command before the deletion starts while the phone is turned off.  In my case the erase is pending the phone being turned on.  Now that I have found the phone, I don't want the deletion to happen.  How can I undo the command before turning on the iPhone?

    There's no way to block the remote wipe.  But once it's been wiped, you can perform a restore from your backup on either icloud or itunes.

  • RMBP: Sometimes, after having been shut down, i have to press the power button several times before the machine starts up. It's 3 weeks old, and this has happened 2 times now. Is there something wrong with my rMBP?

    rMBP: Sometimes, after having been shut down, i have to press the power button several times before the machine starts up. It's 3 weeks old, and this has happened 2 times now. Is there something wrong with my rMBP?

    Did you purchase the Mac new?
    You have 14 calendar days from the time your items are delivered to initiate a return as noted here.
    Even though you are past the 14 day limit, if it were me, I'd take the Mac back and explain what's going on. Your Mac should work out of the box.
    message edited by:  cs

  • Hi! I just joined the creative cloud. As a photographer I would like to download photoshop and lightroom. When I try to do this, before the download starts, I get the message: 'we are experiencing some problems, please try later'. I've tried multiple time

    Hi! I just joined the creative cloud. As a photographer I would like to download photoshop and lightroom. When I try to do this, before the download starts, I get the message: 'we are experiencing some problems, please try later'. I've tried multiple times for the last 3 days but no change... Any ideas?

    Michelmolder please try utilizing a different web browser.  If you continue to experience difficulties then I would recommend reviewing Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html for information on how to install Photoshop and Lightroom directly through the Creative Cloud Desktop application.

  • Loud beep sound when starting up my Mac book air (2007), right before the classic start-up noise

    There is a very loud beep right before the classic Mac start up "bong"
    I'm thinking there might be something wrong with the ram...
    Any answers? Thanks!

    Although it's an older article, for the most part it's applicable -
    http://support.apple.com/kb/HT2538
    The beep on startup is usually an indication of a failed RAM module. It's also possible that a recent firmware update on the machine was botched. If you didn't recently perform a firmware update then it's probably the RAM. As the RAM is soldered directly to the logic board it cannot be replaced individually, it'd require a full logic board replacement.
    Given the age of the machine, it's unlikely still covered by the AppleCare Protection Plan and definitely not the one year limited warranty.
    The next course of action would be to bring the machine into the Genius Bar or AASP and have them evaulate your repair options.

  • Flip Animation Is Showing Next View BEFORE The Animation Starts

    Hi All,
    I am trying to do a flip animation, but the new subview is showing BEFORE the animation takes place rather than 1/2 way through the animation. It looks really bad. Can anyone see what I'm doing wrong... I've checked the elements application and mine looks pretty similar...
    // setup the animation group
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:0.75];
    [UIView setAnimationDelegate:self];
    // [UIView setAnimationDidStopSelector:@selector(transitionDidStop:finished:context:)];
    // flip views
    [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES];
    [questionCard removeFromSuperview];
    [self.view addSubview:answerCard];
    [UIView commitAnimations];
    Thanks
    Ray

    Ok, I've stripped this down to it's bear bones and it's still not working. Here's what's left and when I swipe from right to left it displays the label and THEN animates...
    // PlayGameController.h
    // JapaneseMyWay
    // Created by Ray on 4/22/09.
    // Copyright 2009 _MyCompanyName_. All rights reserved.
    #import <UIKit/UIKit.h>
    #import "GuessingGameQuestionCard.h"
    #import "GuessingGameAnswerCard.h"
    // this controllers view contains the main area for playing the game. sub views for flash cards are shown.
    @interface PlayGuessingGameController : UIViewController {
    CGPoint gestureStartPoint;
    UILabel *testLabel;
    -(void)flipCard;
    @end
    // PlayGameController.m
    // JapaneseMyWay
    // Created by Ray on 4/22/09.
    // Copyright 2009 _MyCompanyName_. All rights reserved.
    #import "PlayGuessingGameController.h"
    @implementation PlayGuessingGameController
    // Implement loadView to create a view hierarchy programmatically, without using a nib.
    - (void)loadView {
    // create a new view for this controller
    self.view = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
    // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
    - (void)viewDidLoad {
    [super viewDidLoad];
    -(void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event {
    NSSet *myTouches = [event touchesForView:self.view];
    UITouch *touch = [myTouches anyObject];
    CGPoint point = [touch locationInView:self.view];
    // save start point
    gestureStartPoint = point;
    -(void)touchesMoved:(NSSet*)touches withEvent:(UIEvent*)event {
    NSSet *myTouches = [event touchesForView:self.view];
    UITouch *touch = [myTouches anyObject];
    CGPoint point = [touch locationInView:self.view];
    // if we swiped right to left
    float minLength = 25.0f;
    float maxVariance = 5.0f;
    // did we swipe right to left?
    if (gestureStartPoint.x-point.x > minLength && abs(gestureStartPoint.y-point.y) < maxVariance) {
    // flip card
    [self flipCard];
    -(void)flipCard {
    // setup the animation group
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:0.75];
    // flip views
    [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES];
    testLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 240, 320)];
    testLabel.text = @"test";
    [self.view addSubview:testLabel];
    [UIView commitAnimations];
    - (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
    // Release anything that's not essential, such as cached data
    - (void)dealloc {
    [super dealloc];
    @end
    Thanks
    Ray

  • Actvities before the Project Start Date

    Every now & then, we will get an activity which is a precursor to a project kicking off as a project start date so in theory from that start date would be known as either week 1 or Month 1.
    So in this case, any actvivity starting a month for example before the kick off date should be shown in "- Month 1" but in Project 2013, it takes this new date as Month 1 even when the Project Start Date has not changed.
    The earlier versions of Project, you could manipulate this so what's changed?...Is there a way around this?
    I am not using Project server as will never use it to save myself from grief & stress!...prefer to keep it simple!

    I couldn't test it with 2013 but with 2010 the week numbering starts at the project start date, so you can have a project start date on a certain date which will be your week1, and then set predecessors with no impact on the numbering.
    If you confirm that this behavior jas changed with 2013 version, an option could be to enter as manually scheduled tasks with no dates the tasks prior to the project start date, using custom fields to enter the actual dates.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • HT1583 When burning a DVD of photos and music from iDVD, the photos blur right before the transitions and the music has about 5 second glitches here and there before the music starts again. Is there any way to burn the DVD without this happening?

    Each year I am in charge of making a slideshow of photos and music for my annual company meeting. I always use iDVD to set up my photos and music and then burn the DVD to play at the meeting. Every time I burn the DVD, it blurs right before the transition of the photo. It has always done this and I'm not sure why. It will also make the music glitch in a few spots for about 5 seconds or more. If I burn another DVD to try it again, the glitches will still be there, but in different spots. I've tried the highest quality of DVD's possible and this still happens. What can I do to fix this problem?

    Try disabling transitions altogether!
    There is a technical reason that this breakup happens - it is to do with how slideshows can be saved within the DVD specification, they can either be recorded as 'video streams' or as a collection of 'still images'.
    When you add transitions iDVD has no option but to use a video stream, this can result in terrible 'breakup' because the mpeg 2 encoder isn't designed to handle scenes that are static with a sudden short change. You can see 'artefacts' in the video stream…
    https://en.wikipedia.org/wiki/Compression_artifact
    'Still image slideshows' avoid the issue altogether by only showing a static image, no video compression is used & because the scene doesn't transition so it shouldn't breakup.
    NOTE: Music on the slideshow is irrelevant, both types can use a soundtrack.
    I cannot remember if it is possible to force iDVD to only make still image slideshows, I always use DVD Studio Pro to correctly setup DVD's. I'd suggest you use the option to save the DVD to a disk image & then open that disk image so that DVD Player can preview it, that should save on the number of test disks you burn.
    If you cannot make it avoid using video streams you may be ether off making your own video slideshow in iMovie & then import that into iDVD. It may eventually look better despite being a video stream!
    iDVD isn't really condusive to professional levels of control.

  • Preloader only fills 1/2 way before the video starts

    I am very new to Flash CS4, however I was able to create a preloader with help from a Dan Carr tutorial.
    Here is my source:
    import fl.video.*;
    import fl.controls.ProgressBarMode;
    // Set Variables
    var flvControl = display;
    var flvSource = "op.flv";
    // Create event handler functions to control the progressbar
    function progressHandler(event:VideoProgressEvent):void
       var bl = Math.round(event.bytesLoaded/1000);
       var bt = Math.round(event.bytesTotal/1000);
       // Update progress...
       pb.setProgress(bl,bt);
    function readyHandler(event:VideoEvent):void
       // Remove progressbar when we start playing...
       removeChild(pb);
    // Set progress bar state
    pb.mode = ProgressBarMode.MANUAL;
    pb.indeterminate = false;
    // Add listeners and load the video
    flvControl.addEventListener(VideoProgressEvent.PROGRESS, progressHandler);
    flvControl.addEventListener(VideoEvent.READY, readyHandler);
    flvControl.source = flvSource;
    Here is an example of the video:
    http://orthopreferred.us/test/ortho/op1.html
    The movie loads and plays but the preloader only loads part of the way. How would I go about having the preloader progress bar load all the way then have the movie start?
    Thanks!

    I have tried your code change and the progress bar still does not completely load. It goes just a bit the the video appears.
    I edited the fla to this (see bold):
    import fl.video.*;
    import fl.controls.ProgressBarMode;
    // Set Variables
    var flvControl = display;
    var flvSource = "op.flv";
    // Create event handler functions to control the progressbar
    function progressHandler(event:VideoProgressEvent):void
       var bl = Math.round(event.bytesLoaded/1000);
       var bt = Math.round(event.bytesTotal/1000);
       // Update progress...
       pb.setProgress(bl,bt);
    function readyHandler(event:VideoEvent):void
       // Remove progressbar when we start playing...
       removeChild(pb);
    // Set progress bar state
    pb.mode = ProgressBarMode.MANUAL;
    pb.indeterminate = false;
    // Add listeners and load the video
    flvControl.autoPlay=false;
    flvControl.addEventListener(VideoProgressEvent.PROGRESS, progressHandler);
    flvControl.addEventListener(VideoEvent.READY, readyHandler);
    flvControl.source = flvSource;
    flvControl.play();
    //end
    Progress bar barely moves then the movie appears and plays.
    See example:  http://orthopreferred.us/test/ortho/op1.html
    My fla can be downloaded here: http://orthopreferred.us/test/ortho/op1.fla

  • Difficulty in parsing the XML root tag through Xpath.

    <?xml version="1.0" encoding="Windows-1252"?>
    <a xsi:schemaLocation="http://www.a.org.uk/ http://www.a.org.uk/schema/2.1/a_general.xsd" CreationDateTime="2013-05-17T08:49:58.7084555+10:00" ModificationDateTime="2011-05-17T08:49:58.7084555+10:00" Modification="new" FileName="a_99-570_-1-sj2.xml" RevisionNumber="3" SchemaVersion="2.1" xml:lang="en" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.a.org.uk/">
         <Localities>
    newyork
    </Localities>
    </a>
    I am not able to parse that xml file due to root tag . Some namespacing issue .Need a solution for that .Do we need to write external class to define all namespacing or some predefined functions can work ?
    Thanks,
    Varun Aggarwal

    But where is the namespace here !?

  • Java - InputStream - Weird Characters in the Output!

    Hi,
    I have a software which outputs lines of numbers one by one. In another java program, I use BufferedReader as follows:
    BufferedReader input = new BufferedReader(new InputStreamReader(pr.getInputStream(),"US-ASCII"));
    where pr is the process which runs the software. For each line in the output stream, I try to check whether the first number in the line is greater than a certain value and if it is, I write to another file.
    The problem is, when I run the software repeatedly (in a linux cluster) like 10 simulations simultaneously, one of them have got @^@^.... characters followed by some huge numbers. So, I tried eliminating that line alone by using String.matches command but now, it seems even after that I get the error - so, I think it might mean that it is actually during the writing process that the problem occurs. I use BufferedWriter like the following to write it: (I do flush it after writing.)
    BufferedWriter out=new BufferedWriter(new FileWriter(tmp_file));
    I would greatly appreciate if someone can help. This thing really seems to be a huge bottleneck!
    Thanks,
    Senthil

    Hi ejp! Thanks - here is the code!
    import java.io.BufferedReader;
    import java.io.FileOutputStream;
    import java.io.InputStreamReader;
    import java.io.PrintStream;
    import java.io.*;
    import java.util.*;
    //call the class file with the input xml file to simulate
    public class RunSim {
    public static void main(String[] args) {
    String[] xmlFiles = new String[] { "/home/senthil/Simulator/Dessa1.4/" args[0]};
    Scanner input=null;
    FileWriter ofw=null;
    PrintWriter out=null;
    for(String file:xmlFiles) {
    try {
    String[] command = {"java","Test",file, "10000"};
    Process pr = Runtime.getRuntime().exec(command); // run the command
    input = new Scanner(new InputStreamReader(pr.getInputStream()));
    String line=null;
    ofw=new FileWriter(file"_out.txt");
    out=new PrintWriter(ofw);
    while(input.hasNextLine()) {
    line=input.nextLine();
    System.out.println(line);
    if(line.matches("[0-9.\\s]*")) { // I included this as I didn't want the '@^' character - but still, it is being produced.
    out.println(line);
    out.flush();
    String[] str = line.split(" ");
    if(!line.equals("Badly formatted XML file")){
    if((Float.parseFloat(str[0]) >= 196)) //this is the limit upto which the process has to be run
    pr.destroy();
    else
    continue;
    out.close();
    int exitVal = pr.waitFor();
    System.out.println("Exited with error code "+exitVal);
    } catch(Exception e) {
    System.out.println(e.toString());
    e.printStackTrace();
    }

Maybe you are looking for

  • URGENT: Error while invoking soap-based web service from BPEL process

    I am trying to invoke a soap-based web service deployed in a different OC4J container but on the same iAS middle tier install as the BPEL server. The deployment is successful. I am running 10.1.2 BPEL server. But invoking a process throws the followi

  • Create new folder with selected items

    I have a bunch of movies that I would like to place into individual folders of the same name (Without the extension name). I wanted to try and create a keyboard command to do this with the selected files, but can't manage to figure out how! What I di

  • SQL statement in JDBC

    Hi Following statements are creating a Result Set which has the records for the "begin date" and "end date" only where as I want all the records between the specified dates. How can I do it? Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection c

  • Define Clearing Accts for Payment Diff. with Altern.Currency

    Dear SAP Gurus, Please suggest difference between Define Clearing Accts for Payment Diff. with Altern.Currency & Define Accounts for Payment Differences with Altern. Currency. I am not able to understand what the use of defining Accounts for Payment

  • Strange Behavior - need help!

    Okay, I'm running an iBook 600, 10.3.9 on a dial-up connection via the built in modem and seem to be having a very weird connection issue. When connected, which is easily attained, etc., I have email and ftp capabilities but absolutely NO web (nothin