Announcement

Collapse
No announcement yet.

RDF/XML - Problem mit "&" in Links

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • RDF/XML - Problem mit "&" in Links

    Hallo,

    ich habe folgendes Problem: Mit Visual Basic möchte ich einen RDF Dump in XML erstellen.
    Wenn nun "&" in Links auftritt, gibt es eine Fehlermeldung, wenn man die XML-Datei öffnen möchte.
    Ersetze ich "&" dann mit "&", geht es zwar, aber dieses "&" taucht dann leider auch in den Links auf, wenn ich einen RDF Parser mit der Datei "füttere".
    Wie kann ich es schaffen, dass ich weiterhin einfach nur ein "&" in den Links habe, aber trotzdem die XML-Datei öffnen kann?

    Danke...

  • #2
    Dein verwendeter XML-parser sollte das schon selbst machen.
    Oder schreibst du XML "plain" ohne Verwendung eines Parsers? Falls ja mußt du natürlich alle die Codierungregeln von XML auch in deinem Code einhalten.

    Comment


    • #3
      Danke für die Antwort. Tut mir leid, habe folgendes auf Englisch offline vorbereitet und vergessen, dass Du auf Deutsch geantwortet hast... hoffe das ist jetzt nicht schlimm .

      The thing is, I'm using VBA (Visual Basic in Access) and want to create a proper XML file (so it would open without an error message when opening it in e.g. Opera). Also, I would like to be able to simple copy & paste the pure text I find in that xml document (by e.g. opening it with the simple Windows editor) into an RDF parser (I'm currently using the one that can be found here: http://www.w3.org/RDF/Validator/ ).

      I tried CDATA, but it just doesn't work. Also, as mentioned, when I replace "&" with "&" and I have it in the links and also within text of e.g. RDF objects which I can't live with.

      E.g. the one part I'm currently working on is

      Click <A href="form.htm">&raquo; HERE</A>

      The & causes the trouble and I can't manage to solve it. Can you give me any tipp? Thank you very much...

      Comment

      Working...
      X