https://bugzilla.wikimedia.org/show_bug.cgi?id=34058
Web browser: ---
Bug #: 34058
Summary: ApiQueryParseTree doesn't work when XML format is
requested
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: VisualEditor
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Something like this query:
http://wiki.ivy.local/w/api.php?action=query&prop=parsetree&titles=Main%20Page&format=json
Returns a sensible data structure. However, when formatted as XML, an error is
returned:
Warning: htmlspecialchars() expects parameter 1 to be string, object given
in /Users/neilk/Sites/trunk/includes/Sanitizer.php on line 978
I've tried other variants and sometimes I do get reasonable XML back but with
empty contents. Is it not possible for the API to return arbitrary PHP data
structures? Is there something to be done with 'indexed tags'?
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l