Schema with Space Character

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Schema with Space Character

Viewing 1 reply thread
  • Author
    Posts
    • #18314

      Hi People,

       

      I created a schema with an element named : "Test XPTO", if I open the xsd file with notepad the name of this field is "Test_x0020_XPTO" (x_0020 is the ASCII code in hexa for space char).

       

      Can anyone tell me if this space can cause a problem in the future? Maybe in a transform, in a orchestration, in anywhere I could use this schema?

       

      I'm only asking this because in BTS2004 I think I had some problem with this kind of schema (I think, it was some time ago :)).

       

      Thanks in advance.
       

    • #18315

      Whether an API or development tool will accept spaces in variables, element, node, etc name I avoid it as a rule, because there are some many cases where it DOES cause a problem.

       
      Test XPTO can easily be turned into Test_XPTO and still be quite readable; so is TestXPTO 

      IMO avoid spaces…. 

      • #18316

        Thanks for the quick reply, I know what you mean. I avoid spaces also, and replace the with "_" too.

         

        The only problem is that I created this field a long time ago and didn't see the space there… until today, and today if I "correct" this space I will have to change tons of transforms.

         

        Thanks again.

        • #18317

          I see your conundrum…

          If the space isn't causing a problem today I would suggest leaving it along, but making a note of it somewhere and planning to change it at a logical time in the future 🙂
           

        • #18322

          That just highlights another, non technical, problem with spaces in names – how many other developers can "not see it" while trying to understand why their code does not work before they figure out they should have put a space in?

           

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.