Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XML Parsing Error: prefix not bound to a namespace

Tags:

xml

This is my first time creating a xbrl document but I am having problems with one line not working. can anyone tell me what I have done wrong

<us-gaap:Cash contextRef="Feb022013" unitRef="USD" decimals="-3" >231501</us-gaap:Cash>
like image 392
user2977035 Avatar asked Nov 10 '13 20:11

user2977035


3 Answers

Check on top of the code following code is placed under svg.. In most cases we miss any of these..

<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
like image 56
phpnerd Avatar answered Nov 10 '22 06:11

phpnerd


Apparently, you did not bind an XML prefix to its namespace. That's not XBRL specific, it's usual XML. See for instance Java XML Schema validation: prefix not bound

So, somewhere in your document (usually at the root) you should have:

xmlns:us-gaap="…"

So, probably something like

<xbrl xmlns:us-gaap="http://fasb.org/us-gaap/2013-01-31" …>
like image 40
rds Avatar answered Nov 10 '22 04:11

rds


I had this issue because I had defined two closing </urlset>

After I fixed this error, it parsed fine.

like image 2
Jonni2016aa Avatar answered Nov 10 '22 04:11

Jonni2016aa