DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: XML HIDDEN DATA???

  1. #1
    Tech Guest

    XML HIDDEN DATA???



    Hi all,

    Im new to XML, and i was wondering if i can have some elements within an
    xml document 'hidden' from anyone that uses a browser or notepad to see it???

    for example in the following, i would NOT want the user to read/change the

    value for "id"

    <entry>
    <id>1</id>
    <address>LA</address>
    <location>AMERICA</location>
    </entry>



  2. #2
    Russell Jones Guest

    Re: XML HIDDEN DATA???

    No. XML is just a text file. If you write a text file to disk, anyone can
    view/edit it with any text editor. You could encrypt the file and save it
    with some other extension though. The encryption wouldn't prevent people
    from changing the file, but it would prevent them from seeing the
    information you don't want them to see. The changed extension would prevent
    the file from opening autmatically in IE or via Windows Explorer. Note that
    none of this is completely "safe", but the combination will discourage all
    but serious hackers.

    "Tech" <loq@hotmail.com> wrote in message
    news:3efab509$1@tnews.web.devx.com...
    >
    >
    > Hi all,
    >
    > Im new to XML, and i was wondering if i can have some elements within an
    > xml document 'hidden' from anyone that uses a browser or notepad to see

    it???
    >
    > for example in the following, i would NOT want the user to read/change the
    >
    > value for "id"
    >
    > <entry>
    > <id>1</id>
    > <address>LA</address>
    > <location>AMERICA</location>
    > </entry>
    >
    >




  3. #3
    Tech Guest

    Re: XML HIDDEN DATA???


    Thanks Russell for the info.

    "Russell Jones" <arj1@nospam.northstate.net> wrote:
    >No. XML is just a text file. If you write a text file to disk, anyone can
    >view/edit it with any text editor. You could encrypt the file and save it
    >with some other extension though. The encryption wouldn't prevent people
    >from changing the file, but it would prevent them from seeing the
    >information you don't want them to see. The changed extension would prevent
    >the file from opening autmatically in IE or via Windows Explorer. Note that
    >none of this is completely "safe", but the combination will discourage all
    >but serious hackers.
    >
    >"Tech" <loq@hotmail.com> wrote in message
    >news:3efab509$1@tnews.web.devx.com...
    >>
    >>
    >> Hi all,
    >>
    >> Im new to XML, and i was wondering if i can have some elements within

    an
    >> xml document 'hidden' from anyone that uses a browser or notepad to see

    >it???
    >>
    >> for example in the following, i would NOT want the user to read/change

    the
    >>
    >> value for "id"
    >>
    >> <entry>
    >> <id>1</id>
    >> <address>LA</address>
    >> <location>AMERICA</location>
    >> </entry>
    >>
    >>

    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center