Um die aktuelle Site in XML auszugeben kann folgender parameter verwendet werden:
{{ page.xml }}
Demo:
"}" expected: /content/body/pre[2], line 1, column 2 (click for details)MindTouch.Deki.Script.Compiler.DekiScriptParserException: "}" expected: /content/body/pre[2], line 1, column 2
at MindTouch.Deki.Script.Compiler.Errors.SynErr (System.String origin, Int32 line, Int32 col, Int32 n) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.SynErr (Int32 n) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.Expect (Int32 n) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.Map (MindTouch.Deki.Script.Expr.Location& location, MindTouch.Deki.Script.Expr.DekiScriptExpression& expr) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.Literal (MindTouch.Deki.Script.Expr.DekiScriptExpression& expr) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.Primary (MindTouch.Deki.Script.Expr.DekiScriptExpression& expr) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.Unary (MindTouch.Deki.Script.Expr.DekiScriptExpression& expr) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.MulExpr (MindTouch.Deki.Script.Expr.DekiScriptExpression& expr) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.AddExpr (MindTouch.Deki.Script.Expr.DekiScriptExpression& expr) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.ConcatExpr (MindTouch.Deki.Script.Expr.DekiScriptExpression& expr) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.RelExpr (MindTouch.Deki.Script.Expr.DekiScriptExpression& expr) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.EqlExpr (MindTouch.Deki.Script.Expr.DekiScriptExpression& expr) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.AndExpr (MindTouch.Deki.Script.Expr.DekiScriptExpression& expr) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.OrExpr (MindTouch.Deki.Script.Expr.DekiScriptExpression& expr) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.NullCoalescingExpr (MindTouch.Deki.Script.Expr.DekiScriptExpression& expr) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.TernaryExpression (MindTouch.Deki.Script.Expr.DekiScriptExpression& expr) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.Expression (MindTouch.Deki.Script.Expr.DekiScriptExpression& expr) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.Statements (MindTouch.Deki.Script.Expr.DekiScriptExpression& expr) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.DekiScript () [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.Parser.Parse () [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.DekiScriptParser.Parse (Location location, System.IO.Stream source) [0x00000] in <filename unknown>:0
at MindTouch.Deki.Script.Compiler.DekiScriptParser.Parse (System.Xml.XmlElement current, System.Collections.Generic.List`1 list) [0x00000] in <filename unknown>:0
Um die Seite komplett im XML Format anzuzeigen folgende URL mit Page Nummer öffnen:
http://mehrwert.volkart.info/@api/deki/pages/PAGEID/
Test: http://mehrwert.volkart.info/@api/deki/pages/325/
Test Inhalt auf Seite in XML an andere Seite in PHP übergeben:
/*]]>*/
HTML
<script> alert(document.getElementById('myxml').innerHTML); </script>
Alternative über Page Properties
Beispiel Link: https://firncore.trialanderror.tech/@api/deki/pages/325/properties/urn%253Acustom.mindtouch.com%2523xml-test
Einbindung XML über Java Script
Demo XML: 1984